|
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: 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 | +//// |
| 21 | +
|
| 22 | +[id="assembly-my-user-story_{context}"] |
| 23 | += My user story |
| 24 | +//// |
| 25 | +If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring. |
| 26 | +//// |
14 | 27 |
|
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 |
19 |
| -//If the assembly covers a task, start the title with a verb in the gerund form, such as Creating or Configuring. |
20 | 28 | :context: assembly-keyword
|
21 |
| -// 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. |
22 | 29 |
|
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. |
| 30 | +//// |
| 31 | +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. |
| 32 | +//// |
| 33 | +
|
| 34 | +[role="_abstract"] |
| 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 text that immediately follows the `[role="_abstract"]` tag is used for search metadata. |
24 | 36 |
|
25 | 37 | .Prerequisites
|
26 | 38 |
|
27 | 39 | * A bulleted list of conditions that must be satisfied before the user starts following this assembly.
|
28 | 40 | * You can also link to other modules or assemblies the user must follow before starting this assembly.
|
29 | 41 | * Delete the section title and bullets if the assembly has no prerequisites.
|
| 42 | +* X is installed. For information about installing X, see <link>. |
| 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 starts with a level-1 heading (= Heading), the heading will be interpreted as a level-2 heading (== Heading) in the assembly. |
35 | 50 |
|
36 |
| -include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+1] |
| 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 | +//// |
| 54 | +
|
| 55 | +include::modules/TEMPLATE_PROCEDURE_doing_one_procedure.adoc[leveloffset=+2] |
| 56 | +include::modules/TEMPLATE_PROCEDURE_reference-material.adoc[leveloffset=2] |
37 | 57 |
|
| 58 | +[role="_additional-resources"] |
38 | 59 | == Additional resources (or Next steps)
|
| 60 | +//// |
| 61 | +Optional. Delete if not used. |
| 62 | +//// |
39 | 63 |
|
40 | 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.
|
41 | 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].
|
42 | 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].
|
43 | 67 |
|
44 |
| -// Restore the context to what it was before this assembly. |
| 68 | +//// |
| 69 | +Restore the context to what it was before this assembly. |
| 70 | +//// |
45 | 71 | ifdef::parent-context[:context: {parent-context}]
|
46 | 72 | ifndef::parent-context[:!context:]
|
0 commit comments