You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 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
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 an anchor that links 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
+
////
14
21
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
-
// If the assembly is reused in other assemblies in a guide, include {context} in the ID: [id="a-collection-of-modules_{context}"].
17
22
ifndef::context[]
18
23
[id="${module_id}"]
19
24
endif::[]
20
25
ifdef::context[]
21
26
[id="${module_id}_{context}"]
22
27
endif::[]
23
28
= ${module_title}
24
-
// If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring.
29
+
////
30
+
If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring.
31
+
////
25
32
26
33
:context: ${module_id}
27
-
// 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.
28
34
35
+
////
36
+
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.
37
+
////
38
+
39
+
[role="_abstract"]
29
40
// <example>
30
-
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.
41
+
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 text that immediately follows the `[role="_abstract"]` tag is used for search metadata.
31
42
// </example>
32
43
33
44
.Prerequisites
@@ -36,27 +47,41 @@ This paragraph is the assembly introduction. It explains what the user will acco
36
47
* A bulleted list of conditions that must be satisfied before the user starts following this assembly.
37
48
* You can also link to other modules or assemblies the user must follow before starting this assembly.
38
49
* Delete the section title and bullets if the assembly has no prerequisites.
50
+
* X is installed. For information about installing X, see <link>.
51
+
* You can log in to X with administrator privileges.
39
52
// </example>
40
53
41
-
// 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.
54
+
////
55
+
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.
// [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.
[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.
* 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.
55
78
* For more details on writing assemblies, see the link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].
56
79
* 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].
57
80
// </example>
58
81
59
-
// Restore the context to what it was before this assembly.
82
+
////
83
+
Restore the context to what it was before this assembly.
Copy file name to clipboardExpand all lines: templates/concept.adoc
+21-11Lines changed: 21 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,21 +2,28 @@
2
2
//
3
3
// <List assemblies here, each on a new line>
4
4
5
-
// 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}"]
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 an anchor that links to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
14
+
15
+
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.
16
+
////
9
17
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.
11
18
[id="${module_id}_{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.
13
19
= ${module_title}
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_.
20
+
////
21
+
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_.
22
+
////
16
23
24
+
[role="_abstract"]
17
25
// <example>
18
-
A short introductory paragraph is required for the concept module.
19
-
It will provide an overview of the module.
26
+
Write a short introductory paragraph that provides an overview of the module. The text that immediately follows the `[role="_abstract"]` tag is used for search metadata.
20
27
21
28
The contents of a concept module give the user descriptions and explanations needed to understand and use a product.
22
29
@@ -25,8 +32,11 @@ The contents of a concept module give the user descriptions and explanations nee
25
32
* Do not include any instructions to perform an action, such as executing a command. Action items belong in procedure modules.
26
33
// </example>
27
34
35
+
[role="_additional-resources"]
28
36
.Additional resources
29
-
37
+
////
38
+
Optional. Delete if not used.
39
+
////
30
40
// <example>
31
41
* A bulleted list of links to other material closely related to the contents of the concept module.
32
42
* 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.
Copy file name to clipboardExpand all lines: templates/procedure.adoc
+35-14Lines changed: 35 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,46 +2,67 @@
2
2
//
3
3
// <List assemblies here, each on a new line>
4
4
5
-
// 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"]
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 an anchor that links to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
12
+
13
+
The `context` attribute enables module reuse. Every module ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
14
+
////
9
15
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.
11
16
[id="${module_id}_{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.
13
17
= ${module_title}
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_.
18
+
////
19
+
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_.
20
+
////
15
21
22
+
[role="_abstract"]
16
23
// <example>
17
-
This paragraph is the procedure module introduction: a short description of the procedure.
24
+
Write a short introductory paragraph that provides an overview of the module. Procedure modules should include the steps that users perform and address user motivation.The text that immediately follows the `[role="_abstract"]` tag is used for search metadata.
18
25
// </example>
19
26
20
27
.Prerequisites
21
28
22
29
// <example>
23
-
* A bulleted list of conditions that must be satisfied before the user starts following this assembly.
24
-
* You can also link to other modules or assemblies the user must follow before starting this assembly.
25
-
* Delete the section title and bullets if the assembly has no prerequisites.
30
+
* A bulleted list of conditions that must be satisfied before the user starts following this module.
31
+
* You can also link to other modules or assemblies the user must follow before starting this module.
32
+
* Delete the section title and bullets if the module has no prerequisites.
26
33
// </example>
27
34
28
35
.Procedure
29
36
30
37
// <example>
31
38
. Start each step with an active verb.
32
-
. Include one command or action per step.
39
+
40
+
. Include one command or action for each step with the exception of simple follow-step, for example:
41
+
.. Do this thing and then select *Next*.
42
+
.. Do this other thing and then select *Next*.
43
+
33
44
. Use an unnumbered bullet (*) if the procedure includes only one step.
34
45
// </example>
35
46
36
47
.Verification steps
48
+
////
49
+
Delete this section if it does not apply to your module. Provide the user with verification methods for the procedure, such as expected output or commands that confirm success or failure.
50
+
////
37
51
38
52
// <example>
39
-
. 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.
53
+
. Start each step with an active verb.
54
+
55
+
. Include one command or action per step.
56
+
40
57
. Use an unnumbered bullet (*) if the procedure includes only one step.
41
58
// </example>
42
59
43
-
.Additional resources
44
60
61
+
[role="_additional-resources"]
62
+
.Additional resources
63
+
////
64
+
Optional. Delete if not used.
65
+
////
45
66
// <example>
46
67
* A bulleted list of links to other material closely related to the contents of the procedure module.
47
68
* 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.
Copy file name to clipboardExpand all lines: templates/reference.adoc
+15-11Lines changed: 15 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,22 +2,26 @@
2
2
//
3
3
// <List assemblies here, each on a new line>
4
4
5
-
// 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"]
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 an anchor that links to the module. Avoid changing it after the module has been published to ensure existing links are not broken.
12
+
13
+
The `context` attribute enables module reuse. Every module ID includes {context}, which ensures that the module has a unique ID even if it is reused multiple times in a guide.
14
+
////
9
15
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.
11
16
[id="${module_id}_{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.
13
17
= ${module_title}
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.
18
+
////
19
+
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.
20
+
////
15
21
22
+
[role="_abstract"]
16
23
// <example>
17
-
A short introductory paragraph is required for the reference module.
18
-
It will provide an overview of the module.
19
-
20
-
A reference module provide data that users might want to look up, but do not need to remember.
24
+
Write a short introductory paragraph that provides an overview of the module. The text that immediately follows the `[role="_abstract"]` tag is used for search metadata. A reference module provides data that users might want to look up, but do not need to remember.
21
25
It has a very strict structure, often in the form of a list or a table.
22
26
A well-organized reference module enables users to scan it quickly to find the details they want.
0 commit comments