All continuation content within numbered list items must be indented with exactly 3 spaces. This includes:
- Code fence markers (the triple backticks)
- Code block content
- Labels like "Example output:"
- Any explanatory text that continues from the list item
This 3-space indentation tells the Markdown renderer that the content belongs to that numbered list item.
When showing shell commands in procedural documentation:
- Use bash code blocks (marked with triple backticks and the bash language identifier)
- Do NOT include the dollar sign prompt in the command
- Show only the actual command that users should type
- The opening and closing fence markers must be indented 3 spaces within numbered lists
When showing what output users should expect to see:
- Place the text "Example output:" on its own line before the output block
- This label must be indented 3 spaces (same as the code fences)
- Use a text code block (marked with triple backticks and the text language identifier)
- Include all output lines within the text block
- Both the opening and closing fence markers must be indented 3 spaces
When demonstrating a sequence of commands and their outputs (such as polling a status command until a condition is met):
- Show the first command in a bash block
- Follow with "Example output:" and a text block showing the first result
- Show the second command in another bash block
- Follow with "Example output:" and a text block showing the second result
- All fence markers and labels maintain the 3-space indentation
When you only need to show a command without demonstrating its output, use a single bash code block. No output block is needed.
For YAML configuration files or Kubernetes resources, use yaml as the language identifier instead of bash or text.
The reference documentation in the input/refdog directory uses a different format:
- Uses console as the language identifier
- Uses tildes instead of backticks for code fences
- DOES include the dollar sign prompt in commands
- Shows commands and output mixed together in the same block
- May include comment lines starting with hash symbols
This console format is ONLY used in the refdog directory. All procedural documentation uses the bash/text separation described above.
Procedural documentation (tutorials, how-to guides):
- Separates commands from output into different blocks
- Commands in bash blocks without dollar sign prompts
- Output in text blocks with "Example output:" labels
Reference documentation (command reference in refdog):
- Shows interactive console sessions as they would appear
- Commands include dollar sign prompts
- Commands and output mixed in the same console block