|
2 | 2 | //
|
3 | 3 | // <List assemblies here, each on a new line>
|
4 | 4 |
|
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 | + |
8 | 11 | ifdef::context[:parent-context: {context}]
|
9 | 12 |
|
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 | +//// |
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. Include {context} in the ID so the assembly can be reused: |
16 | 22 | [id="assembly-my-user-story_{context}"]
|
17 | 23 | = 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 | +
|
19 | 28 | :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 | +//// |
21 | 33 |
|
22 | 34 | [role="_abstract"]
|
23 | 35 | 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.
|
24 | 36 |
|
25 | 37 | .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 | +//// |
27 | 41 |
|
28 | 42 | * X is installed. For information about installing X, see <link>.
|
29 | 43 | * You can log in to X with administrator privileges.
|
30 | 44 |
|
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 | +//// |
32 | 48 |
|
33 | 49 | 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 | +//// |
35 | 54 |
|
36 | 55 | include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+2]
|
37 | 56 | include::modules/TEMPLATE_PROCEDURE_reference-material.adoc[leveloffset=2]
|
38 | 57 |
|
39 | 58 | [role="_additional-resources"]
|
40 | 59 | == Additional resources (or Next steps)
|
41 |
| -//Optional |
| 60 | +//// |
| 61 | +Optional. Delete if not used. |
| 62 | +//// |
| 63 | +
|
42 | 64 | * 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.
|
43 | 65 | * For more details on writing assemblies, see the link:https://github.com/redhat-documentation/modular-docs#modular-documentation-reference-guide[Modular Documentation Reference Guide].
|
44 | 66 | * 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].
|
45 | 67 |
|
46 |
| -// Restore the context to what it was before this assembly. |
| 68 | +//// |
| 69 | +Restore the context to what it was before this assembly. |
| 70 | +//// |
47 | 71 | ifdef::parent-context[:context: {parent-context}]
|
48 | 72 | ifndef::parent-context[:!context:]
|
0 commit comments