Skip to content

[Rebased] Highlight unique components of overloaded declarations [alternate approach] #875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 28, 2024

Conversation

hqhhuang
Copy link
Contributor

@hqhhuang hqhhuang commented Jun 28, 2024

#847 rebased onto main.
Issue: rdar://117503463

This implements the same rendering of highlighted tokens as #841 but using an alternate Render JSON schema where each token may possibly have a highlightDiff boolean flag instead of introducing a new token kind to represent highlights.

I'm not sure yet which approach the DocC team is going to decide on yet, so I'm opening a draft PR for both options and will close one depending on what they decide on.

Testing

Same instructions as #841 except make sure to use the older commit 33388c3c7987904e0aec58e4035fea14bcd19965 from the swift-docc branch when building DocC instead of the latest commit from the mentioned branch.

@hqhhuang hqhhuang requested review from mportiz08 and marinaaisa June 28, 2024 18:21
@hqhhuang
Copy link
Contributor Author

@swift-ci test

@hqhhuang hqhhuang merged commit f759fef into swiftlang:main Jun 28, 2024
1 check passed
@hqhhuang hqhhuang deleted the pr847-resolve-conflicts branch June 28, 2024 19:05
hqhhuang added a commit to hqhhuang/swift-docc-render that referenced this pull request Jun 28, 2024
…roach] (swiftlang#875) rdar://117503463

Highlight unique components of overloaded declarations [alternate approach] (swiftlang#875) rdar://117503463

---------

Co-authored-by: Vera Mitchell <[email protected]>
Co-authored-by: Marcus Ortiz <[email protected]>
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.

3 participants