Using lists
* To generate numbered steps (an ordered list) use the following syntax:
+
. step 1 text
. step 2 test
. step 3 text
-
To keep numbered steps flowing correctly when code blocks, images or admonitions are used inside steps, use the
+on the line before the block starts to indicate the block is part of the step above:. Step one . Step two involves some code + [source, shell] ---- some code ---- . Step three is still in number order -
Use ordered lists for steps in a process. All other lists should be unordered.
-
Use bullets for alternatives. If the reader picks one option, such as API v3 or API v2, or rerunning all jobs or only failed jobs, do not number the options. Ask whether the reader does every item in order. If not, it is not a numbered list.
-
Capitalize the first word of each item in a list.
-
If the text in the bullet is a full sentence or completes the intro stem use a period at the end.
-
Split a paragraph with three or more inline code spans or literal values into a bulleted or description list where that fits. A dense run of literal text is hard to read. For example, list the
refs/heads/<branch-name>andrefs/tags/<tag-name>formats as separate items instead of describing both in one sentence.