Ensure documentation command examples and command reference sections are accurate and safe to copy/paste.
Apply these rules:
bash (or relevant shell) code fence for blocks that contain only shell commands.# ...). If explanation is needed, put it outside the code fence.--debug is shown).Example (copy/paste safe):
# Good: no inline trailing comments inside the runnable block
container build -t builder .
container system property set image.builder builder:latest
container rm -f buildkit
And ensure “Usage” and “Options” sections agree (e.g., if usage shows [--debug], the command’s options documentation must include --debug, or usage must be corrected).