-
Notifications
You must be signed in to change notification settings - Fork 59
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
592: checking for correct assembly metadata - WIP #662
base: main
Are you sure you want to change the base?
Conversation
🎊 Navigate the preview: https://redhat-documentation-vale-at-red-hat-662.surge.sh 🎊 |
0967d95
to
289ae46
Compare
289ae46
to
d14aa36
Compare
@@ -0,0 +1,37 @@ | |||
--- | |||
extends: script | |||
message: "Assembly is missing required metadata. Ensure you include metadata for attributes, TOC and context." |
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.
message: "Assembly is missing required metadata. Ensure you include metadata for attributes, TOC and context." | |
message: "Assembly is missing required metadata and AsciiDoc toc elements. Ensure that you include common-attributes.adoc, toc::[], and :context: attributes." |
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.
General comment. The rule as is implemented here catches the various errors but does not tell you which element is missing. This might be confusing for inexperienced users.
What about a series of rules, one for each element we want to police?
then we could do something like this (for example):
extends: occurrence
message: 'Assembly should have a single "toc::[]" directive'
level: error
scope: raw
min: 1
max: 1
token: toc::\[\]
Fixes #592
WIP - do not merge