Skip to content

Commit 80af607

Browse files
committed
issue-126 updated the annotated template files
1 parent ac78dce commit 80af607

8 files changed

+76
-57
lines changed

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

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,22 @@
88
ifdef::context[:parent-context: {context}]
99

1010
// Base the file name and the ID on the assembly title. For example:
11-
// * file name: my-assembly-a.adoc
12-
// * ID: [id="my-assembly-a"]
13-
// * Title: = My assembly A
14-
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.
16-
[id="a-collection-of-modules"]
17-
// If the assembly is reused in other assemblies in a guide, include {context} in the ID: [id="a-collection-of-modules_{context}"].
18-
= A collection of modules
11+
// * file name: assembly-my-user-story.adoc
12+
// * ID: [id="assembly-my-user-story_{context}"]
13+
// * Title: = My user story
14+
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:
16+
[id="assembly-my-user-story_{context}"]
17+
= My user story
1918
//If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring.
2019
:context: assembly-keyword
2120
// 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.
2221

23-
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. Can include more than one paragraph. Consider using the information from the user story.
22+
[role="_abstract"]
23+
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.
2424

2525
.Prerequisites
26+
//Prerequisites are optional. Do not include in your assembly has no prerequisites.
2627

2728
* A bulleted list of conditions that must be satisfied before the user starts following this assembly.
2829
* You can also link to other modules or assemblies the user must follow before starting this assembly.
@@ -31,15 +32,17 @@ This paragraph is the assembly introduction. It explains what the user will acco
3132
// 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.
3233

3334
include::modules/TEMPLATE_CONCEPT_explaining_a_concept.adoc[leveloffset=+1]
34-
// [leveloffset=+1] ensures that when a module starts with a level-1 heading (= Heading), the heading will be interpreted as a level-2 heading (== Heading) in the assembly.
35+
// [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.
3536

36-
include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+1]
37+
include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+2]
38+
include::modules/TEMPLATE_PROCEDURE_reference-material.adoc[leveloffset=2]
3739

40+
[role="_additional-resources"]
3841
== Additional resources (or Next steps)
42+
// An optional bulleted list of links to other material closely related to the contents of the assembly.
3943

40-
* 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.
41-
* For more details on writing assemblies, see the link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].
42-
* 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].
44+
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
45+
* link:https://asciidoctor.org/docs/user-manual/[Asciidoctor User Manual]
4346

4447
// Restore the context to what it was before this assembly.
4548
ifdef::parent-context[:context: {parent-context}]

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

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,30 @@
33
// <List assemblies here, each on a new line>
44

55
// Base the file name and the ID on the module title. For example:
6-
// * file name: my-concept-module-a.adoc
7-
// * ID: [id="my-concept-module-a_{context}"]
6+
// * file name: con-my-concept-module-a.adoc
7+
// * ID: [id="con-my-concept-module-a_{context}"]
88
// * Title: = My concept module A
99

1010
// 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.
11-
[id="concept-explanation_{context}"]
11+
[id="con-my-concept-module-a_{context}"]
1212
// 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.
13-
= Concept explanation
13+
= My concept module A
1414
//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.
1515
//Do not start the title of concept modules with a verb. See also _Wording of headings_ in _The IBM Style Guide_.
1616

17-
A short introductory paragraph is required for the concept module.
18-
It will provide an overview of the module.
17+
[role="_abstract"]
18+
A short introductory paragraph that provides an overview of the module is required.
19+
It provides an overview of the module. The `[role="_abstract"]` tag defines the first paragraph of the module for search metadata.
1920

2021
The contents of a concept module give the user descriptions and explanations needed to understand and use a product.
2122

2223
* Look at nouns and noun phrases in related procedure modules and assemblies to find the concepts to explain to users.
2324
* Explain only things that are visible to users. Even if a concept is interesting, it probably does not require explanation if it is not visible to users.
2425
* Do not include any instructions to perform an action, such as executing a command. Action items belong in procedure modules.
2526

27+
[role="_additional-resources"]
2628
.Additional resources
29+
// An optional bulleted list of links to other material closely related to the contents of the concept module.
2730

28-
* A bulleted list of links to other material closely related to the contents of the concept module.
29-
* 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.
30-
* 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].
31-
* 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].
31+
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
32+
* link:https://asciidoctor.org/docs/user-manual/[Asciidoctor User Manual]

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

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
// <List assemblies here, each on a new line>
44

55
// Base the file name and the ID on the module title. For example:
6-
// * file name: doing-procedure-a.adoc
7-
// * ID: [id="doing-procedure-a"]
6+
// * file name: proc-doing-procedure-a.adoc
7+
// * ID: [id="doing-procedure-a_{context}"]
88
// * Title: = Doing procedure A
99

1010
// 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.
11-
[id="doing-one-procedure_{context}"]
11+
[id="proc-doing-one-procedure_{context}"]
1212
// 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.
1313
= Doing one procedure
1414
// 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_.
1515

16-
This paragraph is the procedure module introduction: a short description of the procedure.
16+
[role="_abstract"]
17+
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.
18+
The `[role="_abstract"]` tag defines the first paragraph of the module for search metadata.
1719

1820
.Prerequisites
1921

@@ -29,12 +31,19 @@ This paragraph is the procedure module introduction: a short description of the
2931

3032
. Use an unnumbered bullet (*) if the procedure includes only one step.
3133

32-
//.Verification steps
33-
//(Optional) Provide the user with verification method(s) for the procedure, such as expected output or commands that can be used to check for success or failure.
34+
.Verification steps (Optional, delete if not applicable)
35+
//(Optional) 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.
3436

37+
. Start each step with an active verb.
38+
39+
. Include one command or action per step.
40+
41+
. Use an unnumbered bullet (*) if the procedure includes only one step.
42+
43+
44+
[role="_additional-resources"]
3545
.Additional resources
46+
// An optional bulleted list of links to other material closely related to the contents of the procedure module.
3647

37-
* A bulleted list of links to other material closely related to the contents of the procedure module.
38-
* 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.
39-
* 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].
40-
* 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].
48+
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
49+
* link:https://asciidoctor.org/docs/user-manual/[Asciidoctor User Manual]

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@
33
// <List assemblies here, each on a new line>
44

55
// Base the file name and the ID on the module title. For example:
6-
// * file name: my-reference-a.adoc
7-
// * ID: [id="my-reference-a"]
6+
// * file name: ref-my-reference-a.adoc
7+
// * ID: [id="ref-my-reference-a_{context}"]
88
// * Title: = My reference A
99

1010
// 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.
11-
[id="reference-material_{context}"]
11+
[id="ref-reference-material_{context}"]
1212
// 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.
1313
= Reference material
1414
//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.
1515

16-
A short introductory paragraph is required for the reference module.
17-
It will provide an overview of the module.
18-
16+
[role="_abstract"]
17+
A short introductory paragraph that provides an overview of the module is required.
18+
The `[role="_abstract"]` tag defines the first paragraph of the module for search metadata.
1919
A reference module provides data that users might want to look up, but do not need to remember.
2020
It has a very strict structure, often in the form of a list or a table.
2121
A well-organized reference module enables users to scan it quickly to find the details they want.

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

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11

22
ifdef::context[:parent-context: {context}]
33

4-
5-
[id="a-collection-of-modules"]
6-
7-
= A collection of modules
4+
[id="assembly-my-user-story_{context}"]
5+
= My user story
86

97
:context: assembly-keyword
108

11-
[role="system:abstract"]
12-
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="system:abstract"]` tag defines the first paragraph of the introduction for search metadata.
9+
[role="_abstract"]
10+
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.
1311

1412
.Prerequisites (optional)
1513

@@ -19,10 +17,10 @@ This paragraph is the assembly introduction. It explains what the user will acco
1917

2018
include::modules/TEMPLATE_CONCEPT_explaining_a_concept.adoc[leveloffset=+1]
2119

22-
include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+1]
20+
include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+2]
2321

24-
[role="system:additional-resources"]
25-
== Additional resources
22+
[role="_additional-resources"]
23+
== Additional resources (or Next steps)
2624
// An optional bulleted list of links to other material closely related to the contents of the assembly.
2725

2826
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33

44
= Concept explanation
55

6-
[role="system:abstract"]
6+
[role="_abstract"]
77
A short introductory paragraph that provides an overview of the module is required.
8-
It provides an overview of the module. The `[role="system:abstract"]` tag defines the first paragraph of the module for search metadata.
8+
It provides an overview of the module. The `[role="_abstract"]` tag defines the first paragraph of the module for search metadata.
99

1010
The contents of a concept module give the user descriptions and explanations needed to understand and use a product.
1111

1212
* Look at nouns and noun phrases in related procedure modules and assemblies to find the concepts to explain to users.
1313
* Explain only things that are visible to users. Even if a concept is interesting, it probably does not require explanation if it is not visible to users.
1414
* Do not include any instructions to perform an action, such as executing a command. Action items belong in procedure modules.
1515

16-
[role="system:additional-resources"]
16+
[role="_additional-resources"]
1717
.Additional resources
1818
// An optional bulleted list of links to other material closely related to the contents of the concept module.
1919

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
= Doing one procedure
55

6-
[role="system:abstract"]
6+
[role="_abstract"]
77
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.
8-
The `[role="system:abstract"]` tag defines the first paragraph of the module for search metadata.
8+
The `[role="_abstract"]` tag defines the first paragraph of the module for search metadata.
99

1010

1111
.Prerequisites (optional)
@@ -22,7 +22,15 @@ The `[role="system:abstract"]` tag defines the first paragraph of the module for
2222

2323
. Use an unnumbered bullet (*) if the procedure includes only one step.
2424

25-
[role="system:additional-resources"]
25+
.Verification steps (Optional, delete if not applicable)
26+
27+
. Start each step with an active verb.
28+
29+
. Include one command or action per step.
30+
31+
. Use an unnumbered bullet (*) if the procedure includes only one step.
32+
33+
[role="_additional-resources"]
2634
.Additional resources
2735
// An optional bulleted list of links to other material closely related to the contents of the procedure module.
2836

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
= Reference material
44

5-
[role="system:abstract"]
5+
[role="_abstract"]
66
A short introductory paragraph that provides an overview of the module is required.
7-
The `[role="system:abstract"]` tag defines the first paragraph of the module for search metadata.
7+
The `[role="_abstract"]` tag defines the first paragraph of the module for search metadata.
88

99
A reference module provide data that users might want to look up. A reference module does not contain procedures or detailed concept information. It has a very strict structure, often in the form of a list or a table. A well-organized reference module enables users to scan it quickly to find the details they want.
1010
AsciiDoc markup to consider for reference data:

0 commit comments

Comments
 (0)