-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Cleanup user docs #85026
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
base: main
Are you sure you want to change the base?
Cleanup user docs #85026
Conversation
Moves all the "diagnostic descriptions" into "diagnostic groups". This then allows some additional handling for: 1. Error when diagnostic files and their definition in `DiagnosticGroups.def` don't match up 2. Error when a title is missing its group name 3. List of all groups with warnings
Also adds a parent `RegionIsolation` group to link both `SendingRisksDataRace` and the newly added `SendingClosureRisksDataRace`.
This is mostly just cleanup: 1. Removes `diagnostic-descriptions.md` since it isn't used any more 2. Adds the group name to all the old notes files 3. Removes trailing whitespace 4. Adds "See Also" sections for notes that have links
func generateIndex() throws { | ||
let notesHandle = try createIndex(name: notesDocFileName, header: notesHeader) | ||
defer { try? notesHandle.close() } | ||
let groupsWithWarnings = try groupNamesWithWarnings() |
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.
Interested in opinions as to whether this is actually worth doing or not. We could potentially include the parent hierarchy in here as well.
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.
@swift-ci please smoke test |
@swift-ci please clean smoke test macOS platform |
The core change here is the update to
generate-doc-index
, which now groups all diagnostic groups together rather than separating them into "descriptions" and "groups". That allows for some extra handling:DiagnosticGroups.def
don't match upThe rest is small cleanups to the old notes files - adding their group name in and adding
See Also
sections where that makes sense. Also updated some of the links to the new TSPL links rather than the old (which takes a little while to redirect and not always to the correct location).