Skip to content

Conversation

@d-ronnqvist
Copy link
Contributor

Rationale: This is an additive change to the LinkableEntities.json spec and LinkDestinationSummary implementation to support multi-language content.
Risk: Low.
Risk Detail: This is an isolated change to an opt-in feature that's off by default.
Reward: Low/Medium
Reward Details: For documentation that export their "linkable entities" for other documentation to reference, this change enable that information in include multi-language content.
Original PR: #54
Issue: rdar://83716043
Code Reviewed By: Ethan Kusters
Testing Details: New tests covering changes have been added. Existing tests continue to pass.

…tlang#54)

* Move content into a source language variant structure

rdar://83716043

* Update LinkDestinationSummary to match spec changes

rdar://83716043

* Move `usr` out of variant substructure since it doesn't vary

* Update the spec to reduce the amount of duplicate data.

Now, the data continues to be encoded directly in the summary and each variant only sets the information that's different in that source language.

* Remove extra closing back-tick in documentation comments

* Use an alias to make optionality of variant properties more explicit

* Remove trait from main summary element to avoid using it as a language replacement

* Small documentation comment refinements
@d-ronnqvist
Copy link
Contributor Author

cc @sara-radi, who is the interim 5.6 branch manager while @franklinsch is on vacation.

@ethan-kusters
Copy link
Contributor

@swift-ci please test

@franklinsch franklinsch merged commit 8ccf89a into swiftlang:release/5.6 Jan 11, 2022
@d-ronnqvist d-ronnqvist deleted the multi-languge-linkable-entities-spec-5.6 branch October 25, 2024 08:59
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.

4 participants