Skip to content

Conversation

franklinsch
Copy link
Contributor

  • Rationale: Do not emit language variants information for article-only catalogs, so that renderers don't advertise these as being available in "Swift", which not accurate.
  • Risk: Low
  • Risk Detail: This is a targeted change that only apply when building article-only catalogs.
  • Reward: Medium
  • Reward Details: This only applies to article-only catalogs.
  • Original PR: Do not emit variants for pages in article-only catalogs #241
  • Issue: rdar://92758192
  • Code Reviewed By: @ethan-kusters
  • Testing Details: Added an automated test to cover the new behavior.

@franklinsch franklinsch requested a review from ethan-kusters May 10, 2022 14:54
Refactor TestRenderNodeOutputConsumer into its own file so that it can
be used in other tests.
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/swiftlang/issues/240).

rdar://92758192
@franklinsch franklinsch force-pushed the article-only-language-variants-5.7 branch from 3888cfa to 01644e0 Compare May 10, 2022 14:55
@franklinsch
Copy link
Contributor Author

@swift-ci please test

@franklinsch franklinsch merged commit c13cab7 into swiftlang:release/5.7 May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants