Skip to content

Commit 5230880

Browse files
authored
Merge pull request #236 from emmurphy1/template-update
template-update
2 parents 1848b01 + 88a5c5c commit 5230880

File tree

4 files changed

+100
-105
lines changed

4 files changed

+100
-105
lines changed

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

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,39 +6,31 @@ See also the complementary step on the last line of this file.
66

77
ifdef::context[:parent-context: {context}]
88

9+
10+
////
11+
Metadata attribute that will help enable correct parsing and conversion to the appropriate DITA topic type.
12+
////
13+
:_mod-docs-content-type: ASSEMBLY
14+
915
////
1016
Base the file name and the ID on the assembly title. For example:
1117
* file name: assembly-my-user-story.adoc
1218
* ID: [id="assembly-my-user-story_{context}"]
1319
* Title: = My user story
14-
////
1520

16-
////
17-
Indicate the content type in one of the following
18-
ways:
19-
Add the prefix assembly- or assembly_ to the file name.
20-
Add the following attribute before the module ID:
21-
:_mod-docs-content-type: ASSEMBLY
22-
////
21+
ID is a unique identifier that can be used to reference this assembly. 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.
2322

23+
Be sure to include a line break between the title and the :context: variable and the :context: variable and the assembly introduction.
24+
If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring.
2425
////
25-
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.
26-
////
27-
2826
[id="assembly-my-user-story_{context}"]
2927
= My user story
3028
////
31-
Be sure to include a line break between the title and the :context: variable and the :context: variable and the assembly introduction.
32-
33-
If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring.
29+
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.
3430
////
3531
3632
:context: assembly-keyword
3733
38-
////
39-
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.
40-
////
41-
4234
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.
4335
4436
== Prerequisites
@@ -51,36 +43,36 @@ This paragraph is the assembly introduction. It explains what the user will acco
5143
5244
////
5345
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-
////
5546

56-
include::modules/TEMPLATE_CONCEPT_explaining_a_concept.adoc[leveloffset=+1]
57-
58-
////
5947
[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.
48+
49+
Add a blank line after each 'include::' statement.
6050
////
6151
52+
include::modules/TEMPLATE_CONCEPT_explaining_a_concept.adoc[leveloffset=+1]
53+
6254
include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+2]
63-
// Add a blank line after each 'include::' statement.
6455
65-
include::modules/TEMPLATE_PROCEDURE_reference-material.adoc[leveloffset=2]
56+
include::modules/TEMPLATE_PROCEDURE_reference-material.adoc[leveloffset=+2]
6657
67-
[role="_additional-resources"]
6858
== Next steps
6959
7060
* This section is optional.
71-
* Provide a bulleted list of links that contain instructions that might be useful to the user after they complete this procedure.
72-
* Use an unnumbered bullet (*) if the list includes only one step.
61+
* Provide information about the next steps the user might want to take.
62+
* This section can include text and links.
7363
7464
// If the last module included in your assembly contains an Additional resources section as well, check the appearance of the rendered assembly. If the two Additional resources sections might be confusing for a reader, consider consolidating their content and removing one of them.
65+
7566
[role="_additional-resources"]
7667
== Additional resources
77-
78-
* This section is optional.
79-
* Provide a bulleted list of links to other closely-related material. These links can include `link:` and `xref:` macros.
80-
* Use an unnumbered bullet (*) if the list includes only one step.
81-
8268
////
83-
Restore the context to what it was before this assembly.
69+
Optional. Delete if not used.
70+
Provide a bulleted list of links and display text relevant to the assembly. These links can include `link:` and `xref:` macros. Do not include additional text.
8471
////
72+
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
73+
* xref:some-module_{context}[]
74+
75+
// Restore the context to what it was before this assembly.
76+
8577
ifdef::parent-context[:context: {parent-context}]
8678
ifndef::parent-context[:!context:]
Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
11
////
2-
Base the file name and the ID on the module title. For example:
3-
* file name: con_my-concept-module-a.adoc
4-
* ID: [id="my-concept-module-a_{context}"]
5-
* Title: = My concept module A
2+
Metadata attribute that will help enable correct parsing and conversion to the appropriate DITA topic type.
63
////
74

8-
////
9-
Indicate the module type in one of the following
10-
ways:
11-
Add the prefix con- or con_ to the file name.
12-
Add the following attribute before the module ID:
135
:_mod-docs-content-type: CONCEPT
14-
////
156

167
////
17-
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.
18-
////
8+
Base the file name and the ID on the module title. For example:
9+
* file name: con_my-concept-module-a.adoc
10+
* ID: [id="my-concept-module-a_{context}"]
11+
* Title: = My concept module A
1912

20-
[id="my-concept-module-a_{context}"]
13+
ID is a unique identifier that can be used to reference this module. Avoid changing it after the module has been published to ensure existing links are not broken.
2114

22-
////
2315
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+
17+
Be sure to include a line break between the title and the module introduction.
2418
////
2519
20+
[id="my-concept-module-a_{context}"]
2621
= My concept module A
2722
////
28-
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_.
29-
30-
Be sure to include a line break between the title and the module introduction.
23+
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 or gerund. See also _Wording of headings_ in _IBM Style_.
3124
////
3225
3326
Write a short introductory paragraph that provides an overview of the module.
@@ -40,20 +33,19 @@ The contents of a concept module give the user descriptions and explanations nee
4033
4134
4235
////
43-
Include titles and alternative text descriptions for images.
44-
Alternative text should provide a textual, complete description of the image as a full sentence.
36+
Do not include third-level headings (===).
37+
Include titles and alternative text descriptions for images and enclose the descriptions in straight quotation marks (""). Alternative text should provide a textual, complete description of the image as a full sentence.
4538
Images should never be the sole means of conveying information and should only supplement the text.
46-
Avoid screenshots or other images that might quickly go out of date and that create a maintenance burden on documentation.
47-
Provide text equivalents for every diagram, image, or other non-text element. Avoid using images of text instead of actual text.
39+
Avoid screenshots or other images that might quickly go out of date and that create a maintenance burden on documentation. Provide text equivalents for every diagram, image, or other non-text element. Avoid using images of text instead of actual text.
4840
////
4941
//.Image title
50-
//image::image-file.png[A textual representation of the essential information conveyed by the image.]
42+
//image::image-file.png["A textual representation of the essential information conveyed by the image."]
5143
5244
[role="_additional-resources"]
5345
.Additional resources
5446
////
5547
Optional. Delete if not used.
48+
Provide a bulleted list of links and display text relevant to the assembly. These links can include `link:` and `xref:` macros. Do not include additional text.
5649
////
57-
* A bulleted list of links to other closely-related material. These links can include `link:` and `xref:` macros.
58-
* 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].
59-
* 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].
50+
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
51+
* xref:some-module_{context}[]
Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,68 @@
1+
2+
////
3+
Metadata attribute that will help enable correct parsing and conversion to the appropriate DITA topic type.
4+
////
5+
6+
:_mod-docs-content-type: PROCEDURE
7+
18
////
29
Base the file name and the ID on the module title. For example:
310
* file name: proc_doing-procedure-a.adoc
411
* ID: [id="doing-procedure-a_{context}"]
512
* Title: = Doing procedure A
613

7-
Indicate the module type in one of the following
8-
ways:
9-
Add the prefix proc- or proc_ to the file name.
10-
Add the following attribute before the module ID:
11-
:_mod-docs-content-type: PROCEDURE
14+
ID is a unique identifier that can be used to reference this module. Avoid changing it after the module has been published to ensure existing links are not broken.
15+
16+
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.
1217

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. 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 an assembly file.
18+
Be sure to include a line break between the title and the module introduction.
1419
////
1520
1621
[id="doing-procedure-a_{context}"]
17-
1822
= Doing procedure A
1923
////
2024
Start the title of a procedure module with a gerund, such as Creating, Installing, or Deploying.
21-
22-
Be sure to include a line break between the title and the module introduction.
2325
////
2426
2527
Write a short introductory paragraph that provides an overview of the module. The introduction should include what the module will help the user do and why it will be beneficial to the user. Include key words that relate to the module to maximize search engine optimization.
2628
2729
.Prerequisites
28-
2930
* A bulleted list of conditions that must be satisfied before the user starts the steps in this module.
3031
* Prerequisites can be full sentences or sentence fragments; however, prerequisite list items must be parallel.
32+
* Do not use imperative statements in the Prerequisites section.
33+
34+
.Procedure
35+
. Make each step an instruction.
36+
. Include one imperative sentences for each step, for example:
37+
.. Do this thing and then select *Next*.
38+
.. Do this other thing, and this other thing, and then select *Next*.
39+
. Use an unnumbered bullet (*) if the procedure includes only one step.
40+
+
41+
NOTE: You can add text, tables, code examples, images, and other items to a step. However, these items must be connected to the step with a plus sign (+). Any items under the .Procedure heading and before one of the following approved headings that are not connected to the last step with a plus sign cannot be converted to DITA.
3142
3243
////
33-
If you have only one prerequisite, list it as a single bullet point.
34-
Do not write prerequisites in the imperative.
35-
You can include links to more information about the prerequisites.
36-
Delete the .Prerequisites section title and bullets if the module has no prerequisites.
44+
Only the following block headings can be reliably mapped to DITA: Prerequisites, Procedure, Verification, Troubleshooting, Troubleshooting steps, Next steps, Next step, Additional resources. They must appear in this order and, with the exception of Additional resources, are only allowed in a procedure module. You can also use block headings in figure, table, and example titles.
3745
////
3846
39-
.Procedure
4047
41-
. Make each step an instruction.
48+
.Verification
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.
4250
43-
. Include one command or action for each step with the exception of simple follow-step, for example:
44-
.. Do this thing and then select *Next*.
45-
.. Do this other thing and then select *Next*.
51+
* Provide an example of expected command output or a pop-up window that the user receives when the procedure is successful.
52+
* List actions for the user to complete, such as entering a command, to determine the success or failure of the procedure.
53+
* Make each step an instruction.
54+
* Use an unnumbered bullet (*) if the verification includes only one step.
4655
47-
. Use an unnumbered bullet (*) if the procedure includes only one step.
56+
.Troubleshooting
57+
Delete this section if it does not apply to your module. Provide the user with troubleshooting steps.
4858
49-
.Verification
59+
* Make each step an instruction.
60+
* Use an unnumbered bullet (*) if the troubleshooting includes only one step.
61+
62+
63+
.Next steps
64+
* Provide a bulleted list of links that contain instructions that might be useful to the user after they complete this procedure.
65+
* Use an unnumbered bullet (*) if the list includes only one step.
5066
5167
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.
5268
@@ -67,7 +83,9 @@ NOTE: Do not use *Next steps* to provide a second list of instructions.
6783
6884
[role="_additional-resources"]
6985
.Additional resources
70-
71-
* This section is optional.
72-
* Provide a bulleted list of links to other closely-related material. These links can include `link:` and `xref:` macros.
73-
* Use an unnumbered bullet (*) if the list includes only one step.
86+
////
87+
Optional. Delete if not used.
88+
Provide a bulleted list of links and display text relevant to the assembly. These links can include `link:` and `xref:` macros. Do not include additional text.
89+
////
90+
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
91+
* xref:some-module_{context}[]
Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,32 @@
1+
////
2+
Metadata attribute that will help enable correct parsing and conversion to the appropriate DITA topic type.
3+
////
4+
:_mod-docs-content-type: REFERENCE
5+
16
////
27
Base the file name and the ID on the module title. For example:
38
* file name: ref_my-reference-a.adoc
49
* ID: [id="my-reference-a_{context}"]
510
* Title: = My reference A
6-
////
711

8-
////
9-
Indicate the module type in one of the following
10-
ways:
11-
Add the prefix ref- or ref_ to the file name.
12-
Add the following attribute before the module ID:
13-
:_mod-docs-content-type: REFERENCE
14-
////
12+
ID is a unique identifier that can be used to reference this module. Avoid changing it after the module has been published to ensure existing links are not broken.
1513

16-
////
17-
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.
18-
////
14+
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.
1915

20-
[id="reference-material_{context}"]
21-
22-
////
23-
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.
16+
Be sure to include a line break between the title and the module introduction.
2417
////
2518
19+
[id="reference-material_{context}"]
2620
= Reference material
2721
////
2822
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.
29-
30-
Be sure to include a line break between the title and the module introduction.
23+
on.
3124
////
3225
3326
Write a short introductory paragraph that provides an overview of the module.
3427
35-
A reference module provides data that users might want to look up, but do not need to remember. It has a very strict structure, often in the form of a list or a table.
36-
A well-organized reference module enables users to scan it quickly to find the details they want.
28+
A reference module provides data that users might want to look up, but do not need to remember. 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.
29+
3730
AsciiDoc markup to consider for reference data:
3831
3932
.Unordered list
@@ -57,7 +50,7 @@ Term 2:: Definition
5750
.Additional resources
5851
////
5952
Optional. Delete if not used.
53+
Provide a bulleted list of links and display text relevant to the assembly. These links can include `link:` and `xref:` macros. Do not include additional text.
6054
////
61-
* A bulleted list of links to other closely-related material. These links can include `link:` and `xref:` macros.
62-
* For more details on writing reference modules, see the link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].
63-
* 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].
55+
* link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide]
56+
* xref:some-module_{context}[]

0 commit comments

Comments
 (0)