-
Notifications
You must be signed in to change notification settings - Fork 78
Remove prefixes from the IDs in the module templates #201
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
Changes from all commits
306b370
4e93012
7091f64
bd7dd38
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| //// | ||
| Base the file name and the ID on the module title. For example: | ||
| * file name: con-my-concept-module-a.adoc | ||
| * ID: [id="con-my-concept-module-a_{context}"] | ||
| * file name: con_my-concept-module-a.adoc | ||
mjahoda marked this conversation as resolved.
Show resolved
Hide resolved
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why con_ instead of con-?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @emmurphy1 I think that it makes sense to distinguish the prefix part and the title part of a file name this way. Moreover, it's a default in the newdoc tool, all RHEL modules and assemblies follow this pattern, and if you check the source files [1] of our mod-docs guide... :-) [1] https://github.com/redhat-documentation/modular-docs/tree/main/modular-docs-manual/content/topics |
||
| * ID: [id="my-concept-module-a_{context}"] | ||
| * Title: = My concept module A | ||
| //// | ||
|
|
||
|
|
@@ -17,7 +17,7 @@ Add the following attribute before the module ID: | |
| The ID is an anchor that links to the module. Avoid changing it after the module has been published to ensure existing links are not broken. | ||
| //// | ||
|
|
||
| [id="con-my-concept-module-a_{context}"] | ||
| [id="my-concept-module-a_{context}"] | ||
|
|
||
| //// | ||
| The `context` attribute enables module reuse. Every module ID includes {context}, which ensures that the module has a unique ID so you can include it multiple times in the same guide. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.