-
Notifications
You must be signed in to change notification settings - Fork 158
Emit language specific topic sections in the markdown representation of automatic curation #856
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
Emit language specific topic sections in the markdown representation of automatic curation #856
Conversation
7e25cd0 to
2683f3d
Compare
2683f3d to
73dfe05
Compare
73dfe05 to
7564600
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks! I have a comment, but it's more of a "future refactor" kind of thing.
| // Sort Swift before other languages | ||
| if lhs == .swift { | ||
| return true | ||
| } else if rhs == .swift { | ||
| return false | ||
| } | ||
| // Otherwise, sort by ID for a stable order | ||
| return lhs.id < rhs.id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sort comparator rings a bell for the code i've been sifting through recently, and i wonder if we should implement Comparable or some other kind of broadly-available comparator so we don't have to duplicate this code.
|
@swift-ci Please test |
|
@swift-ci please test |
|
@swift-ci please test |
Bug/issue #, if applicable: rdar://124527905
Summary
This builds on #854 to emit language specific topic sections in the markdown representation of automatic curation from
docc process-catalog emit-generated-curationDependencies
None
Testing
Run
docc process-catalog emit-generated-curationon a project with language refinements (for example " Tests/SwiftDocCTests/Test Bundles/GeometricalShapes.docc"Symbols that appear in different places in different languages should be listed in language specific topic sections.
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
./bin/testscript and it succeeded