Commit f6b9a48
committed
Don't emit variants for article-only catalogs
For article-only catalogs, i.e., catalogs that use @TechnologyRoot,
don't emit the variants array in the render node, so that renderers
don't display the page's language, since it doesn't have a language.
A longer-term fix here would be to not consider articles in article-only
catalogs to be "Swift", and implement logic in RenderNodeTranslator to
not emit variants information for language-less pages
(github.com//issues/240).
rdar://927581921 parent e2e966c commit f6b9a48
File tree
3 files changed
+32
-2
lines changed- Sources/SwiftDocC
- Infrastructure
- Model/Rendering
- Tests/SwiftDocCTests/Model
3 files changed
+32
-2
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1881 | 1881 | | |
1882 | 1882 | | |
1883 | 1883 | | |
1884 | | - | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
1885 | 1888 | | |
1886 | 1889 | | |
1887 | 1890 | | |
| |||
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
601 | 601 | | |
602 | 602 | | |
603 | 603 | | |
604 | | - | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
605 | 612 | | |
606 | 613 | | |
607 | 614 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments