-
Notifications
You must be signed in to change notification settings - Fork 45
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
RHIDP:3206: added attributes subs to the source block #879
base: main
Are you sure you want to change the base?
Conversation
Updated preview: https://redhat-developer.github.io/red-hat-developers-documentation-rhdh/pr-879/ @ 01/27/25 16:34:50 |
ebac508
to
f6fbd5d
Compare
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.
the code looks right, but if you know where to find a preview of an example of an attribute being rendered in a code block in one of these changed files, please drop a link in the PR so we can easily see what the output looks like.
/lgtm
@pabel-rh reminder to cherry-pick only to 1.4 and 1.3 since earlier version are EOL. |
The addition of the |
f6fbd5d
to
ed49d79
Compare
New changes are detected. LGTM label has been removed. |
I had to commit again to fix a few merge conflicts. @themr0c, I had gone ahead with Nick's alternate approach which he mentioned in the comments section, as that way, it someone in the future does edit one of the source code blocks which currently does not have any attributes, it just makes it easier. |
The missing piece here is as described in the JIRA:
So while adding all the instuctions is half the battle, anyone who adds new code snippets may fall into the same rendering trap in future unless we ALSO implement something in the build.sh or build-ccutil.sh (or some new PR check) which will ensure ALL code blocks can render attributes (even if they don't contain any). @themr0c WDYT? There are >500 source blocks in the repo:
There are 32 [source] blocks with no langauge or subs instructions (
If we implement the above simple grep check, then any number of hits >=1 will result in the PR failing to build and we could then point the user at the line with the |
IMPORTANT: Do Not Merge - To be merged by Docs Team Only
Version(s): main, 1.4.x, 1.3.x
Issue: RHIDP-3206