-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Docs guidelines: Move include for common attributes above the title #62912
Docs guidelines: Move include for common attributes above the title #62912
Conversation
🤖 Updated build preview is available at: Build log: https://circleci.com/gh/ocpdocs-previewbot/openshift-docs/22124 |
98b41e8
to
6040261
Compare
LGTM! |
0a5e53d
to
bbb1dcf
Compare
It's worth noting that if I put the include directive above the ID I get an asciidoctor error. So I've put it under the ID. |
/label peer-review-needed |
/label peer-review-in-progress |
LGTM /remove-label peer-review-in-progress |
/label merge-review-needed |
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.
Sorry, I noticed one thing that maybe we should change - WDYT?
<3> Human readable title (notice the `=` top-level header) | ||
<4> Includes attributes common to OpenShift docs. | ||
<2> A unique (within OpenShift docs) anchor ID for this assembly. Use lowercase. Example: cli-developer-commands. | ||
<3> Includes attributes common to OpenShift docs. |
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.
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.
@kcarmichael08 - fixed! Good spot!
…avoid attributes not rendering in the title
bbb1dcf
to
0c0dcbc
Compare
OCP Docs guidelines change
To avoid an attribute not resolving in the title, the include directive for common-attributes should be above the title so it's processed first.
Based on this issue: https://redhat-internal.slack.com/archives/C02KBD8A4UF/p1690471884037959
Version(s):
4.10+
Issue:
Based on this slack convo: https://redhat-internal.slack.com/archives/C02KBD8A4UF/p1690471884037959
Link to docs preview: