Available directive docs #990
Merged
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: rdar://131987745
Summary
This PR updates the documentation for the
@Available
directive to:@Metadata
directive so that it's clearer that@Available
is used within@Metadata
.It also unhides and documents the
@DeprecationSummary
directive to:@DeprecationSummary
and when to use in-source annotation instead@DeprecationSummary
and@Available
together to give the reader the most information about a deprecated API.Dependencies
None
Testing
Run
swift run docc preview Sources/docc/DocCDocumentation.docc
and preview:Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
[ ] Added testsNot applicable./bin/test
script and it succeeded