-
Notifications
You must be signed in to change notification settings - Fork 440
Generate the SwiftSyntax docc index using CodeGeneration #1394
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
Conversation
@swift-ci Please test |
@swift-ci Please test |
} | ||
GeneratedFileSpec([swiftSyntaxDir, "generated", "syntaxNodes", baseKind.value], syntaxNode(emitKind: baseKind.key)) | ||
} + [ | ||
GeneratedFileSpec([swiftSyntaxDir, "Documentation.docc", "generated", "SwiftSyntax.md"], swiftSyntaxDoccIndex) |
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.
Nit pick and don't need to be part of this PR, personally I would have a private let generatedPath: String = "generated"
next to swiftSyntaxDir
, swiftSyntaxBuilderDir
and to so on.
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.
Good suggestion. I updated it.
And does DocC not support this kind of thing out of the box? |
It turns out we need this index because docc generates the left sidebar that contains from it.
I’m not sure but in either case it’s good if we can sort the types into groups ourselves rather than listing them all together, which is, what I suspect docc would do by default. |
@swift-ci Please test |
@swift-ci please test macOS |
@swift-ci Please test macOS |
It turns out we need this index because docc generates the left sidebar that contains from it.