-
Notifications
You must be signed in to change notification settings - Fork 128
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
Update BlockDirective
extensions
#983
Merged
anferbui
merged 6 commits into
swiftlang:main
from
anferbui:update-block-directive-extensions
Aug 5, 2024
Merged
Update BlockDirective
extensions
#983
anferbui
merged 6 commits into
swiftlang:main
from
anferbui:update-block-directive-extensions
Aug 5, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
While looking at swiftlang#982, I found that there's a better place to keep the list of directive names which we consider removed from content -- we already had a file with lists of directive names so it'll be clearer to keep all of them in the same file.
A lot of directive names were missing from `BlockDirective.allDirectiveNames`. I've updated the array to include all the missing directives which I could find. This property is used to throw warnings about directives which are not supported in symbol source documentation.
@swift-ci please test |
d-ronnqvist
reviewed
Jul 16, 2024
`directivesRemovedFromContent` was being defined in both `DocumentationMarkup` and `BlockDirective`, removed the duplicate definition.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment was marked as duplicate.
@swift-ci please test |
d-ronnqvist
approved these changes
Aug 5, 2024
@swift-ci please test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bug/issue #, if applicable: N/A
Summary
While looking at #982, I found that there's a better place to keep the list of directive names which we consider removed from content:
swift-docc/Sources/SwiftDocC/Model/DocumentationMarkup.swift
Lines 76 to 82 in 563b958
We already had a file with lists of directive names so it'll be clearer to keep all of them in the same file.
I also noticed that a lot of directive names were missing from
BlockDirective.allDirectiveNames
. I've updated the array to include all the missing directives which I could find.This property is used to throw warnings about directives which are not supported in symbol source documentation.
In the future, I think it would be useful to rework this area of the code so that the arrays don't have to be kept manually up to date as that is quite hard to achieve.
Dependencies
N/A.
Testing
Ran unit tests.
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
[ ] Added testsFunctionality should be unchanged../bin/test
script and it succeeded[ ] Updated documentation if necessaryFunctionality should be unchanged.