Skip to content

Commit b4c685e

Browse files
committed
issue-126 updated the comments and removed the uncommented templates
1 parent 9da51f3 commit b4c685e

8 files changed

+96
-159
lines changed

modular-docs-manual/files/TEMPLATE_ASSEMBLY_a-collection-of-modules.adoc

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,47 +2,71 @@
22
//
33
// <List assemblies here, each on a new line>
44

5-
// Retains the context of the parent assembly if this assembly is nested within another assembly.
6-
// For more information about nesting assemblies, see: https://redhat-documentation.github.io/modular-docs/#nesting-assemblies
7-
// See also the complementary step on the last line of this file.
5+
////
6+
Retains the context of the parent assembly if this assembly is nested within another assembly.
7+
For more information about nesting assemblies, see: https://redhat-documentation.github.io/modular-docs/#nesting-assemblies
8+
See also the complementary step on the last line of this file.
9+
////
10+
811
ifdef::context[:parent-context: {context}]
912

10-
// Base the file name and the ID on the assembly title. For example:
11-
// * file name: assembly-my-user-story.adoc
12-
// * ID: [id="assembly-my-user-story_{context}"]
13-
// * Title: = My user story
13+
////
14+
Base the file name and the ID on the assembly title. For example:
15+
* file name: assembly-my-user-story.adoc
16+
* ID: [id="assembly-my-user-story_{context}"]
17+
* Title: = My user story
18+
19+
The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken. Include {context} in the ID so the assembly can be reused.
20+
////
1421
15-
// The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken. Include {context} in the ID so the assembly can be reused:
1622
[id="assembly-my-user-story_{context}"]
1723
= My user story
18-
//If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring.
24+
////
25+
If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring.
26+
////
27+
1928
:context: assembly-keyword
20-
// The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
29+
30+
////
31+
The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
32+
////
2133
2234
[role="_abstract"]
2335
This paragraph is the assembly introduction. It explains what the user will accomplish by working through the modules in the assembly and sets the context for the user story the assembly is based on. The `[role="_abstract"]` tag defines the first paragraph of the introduction for search metadata.
2436
2537
.Prerequisites
26-
//Prerequisites are optional. Delete if your assembly has no prerequisites.
38+
////
39+
Prerequisites are optional. Delete if your assembly has no prerequisites.
40+
////
2741
2842
* X is installed. For information about installing X, see <link>.
2943
* You can log in to X with administrator privileges.
3044
31-
// The following include statements pull in the module files that comprise the assembly. Include any combination of concept, procedure, or reference modules required to cover the user story. You can also include other assemblies.
45+
////
46+
The following include statements pull in the module files that comprise the assembly. Include any combination of concept, procedure, or reference modules required to cover the user story. You can also include other assemblies.
47+
////
3248
3349
include::modules/TEMPLATE_CONCEPT_explaining_a_concept.adoc[leveloffset=+1]
34-
// [leveloffset=+1] ensures that when a module title is a level 1 heading (= Title), the heading will be interpreted as a level-2 heading (== Title) in the assembly. Use [leveloffset=+2] and [leveloffset=+3] to nest modules in an assembly.
50+
51+
////
52+
[leveloffset=+1] ensures that when a module title is a level 1 heading (= Title), the heading will be interpreted as a level-2 heading (== Title) in the assembly. Use [leveloffset=+2] and [leveloffset=+3] to nest modules in an assembly.
53+
////
3554
3655
include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+2]
3756
include::modules/TEMPLATE_PROCEDURE_reference-material.adoc[leveloffset=2]
3857
3958
[role="_additional-resources"]
4059
== Additional resources (or Next steps)
41-
//Optional
60+
////
61+
Optional. Delete if not used.
62+
////
63+
4264
* A bulleted list of links to other material closely related to the contents of the assembly, including xref links to other assemblies in your collection.
4365
* For more details on writing assemblies, see the link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].
4466
* Use a consistent system for file names, IDs, and titles. For tips, see _Anchor Names and File Names_ in link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].
4567
46-
// Restore the context to what it was before this assembly.
68+
////
69+
Restore the context to what it was before this assembly.
70+
////
4771
ifdef::parent-context[:context: {parent-context}]
4872
ifndef::parent-context[:!context:]

modular-docs-manual/files/TEMPLATE_CONCEPT_concept-explanation.adoc

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,27 @@
22
//
33
// <List assemblies here, each on a new line>
44

5-
// Base the file name and the ID on the module title. For example:
6-
// * file name: con-my-concept-module-a.adoc
7-
// * ID: [id="con-my-concept-module-a_{context}"]
8-
// * Title: = My concept module A
5+
////
6+
Base the file name and the ID on the module title. For example:
7+
* file name: con-my-concept-module-a.adoc
8+
* ID: [id="con-my-concept-module-a_{context}"]
9+
* Title: = My concept module A
10+
////
11+
12+
////
13+
The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
14+
////
915

10-
// The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
1116
[id="con-my-concept-module-a_{context}"]
12-
// The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
17+
18+
////
19+
The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
20+
////
21+
1322
= My concept module A
14-
//In the title of concept modules, include nouns or noun phrases that are used in the body text. This helps readers and search engines find the information quickly.
15-
//Do not start the title of concept modules with a verb. See also _Wording of headings_ in _The IBM Style Guide_.
23+
////
24+
In the title of concept modules, include nouns or noun phrases that are used in the body text. This helps readers and search engines find the information quickly. Do not start the title of concept modules with a verb. See also _Wording of headings_ in _The IBM Style Guide_.
25+
////
1626

1727
[role="_abstract"]
1828
A short introductory paragraph that provides an overview of the module is required.
@@ -26,7 +36,9 @@ The contents of a concept module give the user descriptions and explanations nee
2636

2737
[role="_additional-resources"]
2838
.Additional resources
29-
//Optional
39+
////
40+
Optional. Delete if not used.
41+
////
3042
* A bulleted list of links to other material closely related to the contents of the concept module.
3143
* Currently, modules cannot include xrefs, so you cannot include links to other content in your collection. If you need to link to another assembly, add the xref to the assembly that includes this module.
3244
* For more details on writing concept modules, see the link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].

modular-docs-manual/files/TEMPLATE_PROCEDURE_doing-one-procedure.adoc

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,25 @@
22
//
33
// <List assemblies here, each on a new line>
44

5-
// Base the file name and the ID on the module title. For example:
6-
// * file name: proc-doing-procedure-a.adoc
7-
// * ID: [id="doing-procedure-a_{context}"]
8-
// * Title: = Doing procedure A
5+
////
6+
Base the file name and the ID on the module title. For example:
7+
* file name: proc-doing-procedure-a.adoc
8+
* ID: [id="doing-procedure-a_{context}"]
9+
* Title: = Doing procedure A
10+
////
11+
The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
12+
////
913

10-
// The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
1114
[id="proc-doing-one-procedure_{context}"]
12-
// The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
15+
16+
////
17+
The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
18+
////
19+
1320
= Doing one procedure
14-
// Start the title of a procedure module with a verb, such as Creating or Create. See also _Wording of headings_ in _The IBM Style Guide_.
21+
////
22+
Start the title of a procedure module with a verb, such as Creating or Create. See also _Wording of headings_ in _The IBM Style Guide_.
23+
////
1524

1625
[role="_abstract"]
1726
A short introductory paragraph that provides an overview of the module is required. Procedure modules should include both what users will do and why users want to do it.
@@ -32,7 +41,9 @@ The `[role="_abstract"]` tag defines the first paragraph of the module for searc
3241
. Use an unnumbered bullet (*) if the procedure includes only one step.
3342

3443
.Verification steps
35-
//Optional. Delete if not applicable. Provide the user with verification methods for the procedure, such as expected output or commands that can be used to check for success or failure.
44+
////
45+
Optional. Delete if not applicable. Provide the user with verification methods for the procedure, such as expected output or commands that can be used to check for success or failure.
46+
////
3647

3748
. Start each step with an active verb.
3849

@@ -43,7 +54,9 @@ The `[role="_abstract"]` tag defines the first paragraph of the module for searc
4354

4455
[role="_additional-resources"]
4556
.Additional resources
46-
//Optional
57+
////
58+
Optional. Delete if not used.
59+
////
4760
* A bulleted list of links to other material closely related to the contents of the procedure module.
4861
* Currently, modules cannot include xrefs, so you cannot include links to other content in your collection. If you need to link to another assembly, add the xref to the assembly that includes this module.
4962
* For more details on writing procedure modules, see the link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].

modular-docs-manual/files/TEMPLATE_REFERENCE_reference-material.adoc

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@
22
//
33
// <List assemblies here, each on a new line>
44

5-
// Base the file name and the ID on the module title. For example:
6-
// * file name: ref-my-reference-a.adoc
7-
// * ID: [id="ref-my-reference-a_{context}"]
8-
// * Title: = My reference A
5+
////
6+
Base the file name and the ID on the module title. For example:
7+
* file name: ref-my-reference-a.adoc
8+
* ID: [id="ref-my-reference-a_{context}"]
9+
* Title: = My reference A
10+
11+
The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
12+
////
913

10-
// The ID is used as an anchor for linking to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
1114
[id="ref-reference-material_{context}"]
12-
// The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
15+
////
16+
The `context` attribute enables module reuse. Every module's ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide
17+
////
1318
= Reference material
14-
//In the title of a reference module, include nouns that are used in the body text. For example, "Keyboard shortcuts for ___" or "Command options for ___." This helps readers and search engines find the information quickly.
19+
////
20+
In the title of a reference module, include nouns that are used in the body text. For example, "Keyboard shortcuts for ___" or "Command options for ___." This helps readers and search engines find the information quickly.
21+
////
1522

1623
[role="_abstract"]
1724
A short introductory paragraph that provides an overview of the module is required.

modular-docs-manual/files/templates-without-comments/assembly-a-collection-of-modules.adoc

Lines changed: 0 additions & 31 deletions
This file was deleted.

modular-docs-manual/files/templates-without-comments/con-concept-explanation.adoc

Lines changed: 0 additions & 22 deletions
This file was deleted.

modular-docs-manual/files/templates-without-comments/proc-doing-one-procedure.adoc

Lines changed: 0 additions & 39 deletions
This file was deleted.

modular-docs-manual/files/templates-without-comments/ref-reference-material.adoc

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)