-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add authoring support for @TitleHeading
directive
#611
Conversation
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 great! Thank you for opening this. I just left a few comments about formatting and suggestions for improving test coverage.
Sources/docc/DocCDocumentation.docc/Reference Syntax/API Reference Syntax/Metadata.md
Outdated
Show resolved
Hide resolved
Sources/SwiftDocC/Model/Rendering/RenderNode/RenderMetadata.swift
Outdated
Show resolved
Hide resolved
@swift-ci please test |
Co-authored-by: Ethan Kusters <[email protected]>
Co-authored-by: Ethan Kusters <[email protected]>
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.
Documentation is looking really great – thank you!
Sources/docc/DocCDocumentation.docc/Reference Syntax/API Reference Syntax/TitleHeading.md
Outdated
Show resolved
Hide resolved
Sources/docc/DocCDocumentation.docc/Reference Syntax/API Reference Syntax/TitleHeading.md
Outdated
Show resolved
Hide resolved
Sources/docc/DocCDocumentation.docc/Reference Syntax/API Reference Syntax/TitleHeading.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Ethan Kusters <[email protected]>
Co-authored-by: Ethan Kusters <[email protected]>
…ence Syntax/TitleHeading.md Co-authored-by: Ethan Kusters <[email protected]>
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 great! Just had a couple final documentation thoughts.
Sources/docc/DocCDocumentation.docc/Reference Syntax/API Reference Syntax/TitleHeading.md
Outdated
Show resolved
Hide resolved
Sources/docc/DocCDocumentation.docc/Reference Syntax/API Reference Syntax/TitleHeading.md
Outdated
Show resolved
Hide resolved
@swift-ci please test |
…ence Syntax/TitleHeading.md Co-authored-by: Ethan Kusters <[email protected]>
Co-authored-by: Ethan Kusters <[email protected]>
…ence Syntax/TitleHeading.md Co-authored-by: Ethan Kusters <[email protected]>
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 great! Thank you! Excited to have this in.
@swift-ci please test |
A new `@TitleHeading` metadata directive for customizing the text of a page-title heading (also known as an eyebrow or kick). `@TitleHeading` accepts an unnamed parameter containing containing the page-title’s heading text. @metadata { @TitleHeading("Release Notes") } This feature has been pitched on the forums here: https://forums.swift.org/t/supporting-more-types-of-documentation-with-swift-docc/59725#titleheading-10 rdar://110662981
A new `@TitleHeading` metadata directive for customizing the text of a page-title heading (also known as an eyebrow or kick). `@TitleHeading` accepts an unnamed parameter containing containing the page-title’s heading text. @metadata { @TitleHeading("Release Notes") } This feature has been pitched on the forums here: https://forums.swift.org/t/supporting-more-types-of-documentation-with-swift-docc/59725#titleheading-10 rdar://110662981
Bug/issue #: #408
Summary
Add support for an
@TitleHeading
directive that allows for customizing the text of a page-title heading (also known as an eyebrow or kick).Testing
With a documentation catalog
In a documentation catalog with symbol graph files and documentation extension files:
docc preview /path/to/Example.docc
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
./bin/test
script and it succeeded