Writing the field manual
Every manual on this site follows six conventions and passes one publication gate. The conventions get one sentence each below; Definition explains what each buys the reader. The Hello World manual demonstrates all six. Then a walkthrough takes the blank skeleton to a gated, deployable manual.
The six conventions
- Chronological information architecture. Order the manual by the field-work timeline: set up → operate → things that broke, not by product release phases.
- Status-gate verification. Every command is followed by a verify command and its literal expected output, so a step is confirmed, not just run.
- Inline known issues. Each known issue lives on the page where the reader hits it, as symptom, diagnosis command, workaround, and tracker id.
- Variant selector axes. Version and ops-mode differences go through the page-top selector’s axes, with labels that describe themselves.
- Customize tokens. Environment-specific values (username, cluster) are tokens with shipped defaults, not one reader’s values baked into commands.
- Dual consumption. Every page works as rendered HTML for a human and as labeled markdown for an AI agent, from the same source.
The Hello World chapters demonstrate all six.
Write your first manual
You will take the blank skeleton to a publication-gated field manual: duplicate it, retitle it, write the three timeline pages, and pass the gate. Every command below is immediately followed by a verify command or check and its literal expected output, the status gate the site’s manuals use. You need a clone of this repo and Prerequisites below.
Prerequisites
- The definition you are writing against: What is a Field Manual?. Read it first.
- Hugo Extended ≥ 0.168. Check with:
Expected output: a version line at or above hugo v0.168.0+extended.
- Go ≥ 1.27. Check with:
Expected output: a version line at or above go version go1.27.
- A clone of this repo. Check with:
Expected output:
Procedure
- Clone this repo as the starting point for your new manual (one manual per repo):
Verify you have the right repo:
Expected:
- Retitle the manual in
content/hello-world/_index.md: settitleto your manual’s name anddescriptionto one sentence. Check the front matter parses and the title took:
Expected output: the --- fence, then your new title: and description: lines.
- Write the three timeline pages (
set-up/,operate/,things-that-broke/) following the six conventions: outcome first, a verify step after every command, known issues inline. Verify each page has the verification subsection:
Expected output:
Adding pages: create leaves as
content/hello-world/<slug>/index.md. The archetype (archetypes/default.md) provides the front matter; setdescriptionandweightyourself. If you seedraft: true, remove it: drafts are excluded from the build, so the gate still passes while the page stays invisible.
- Run the dev server and check the section serves:
In a second terminal, verify the section renders:
Expected output:
A 404 at the root (http://localhost:1313/) is normal: baseURL contains a path, so the dev server serves under /CAI-Field-Manual-Hello-World/.
- Stop the dev server, then run the publication gate from Editing (§3, Production build): the production build, followed by the warning gate that asserts no WARN lines except the known LibSass one. A clean gate prints no WARN output; the LibSass warning in the direct build’s own output is expected, not a failure.
Verification
The manual is publication-ready when:
- The dev server serves the section at
http://localhost:1313/CAI-Field-Manual-Hello-World/hello-world/(HTTP 200), and each timeline page renders under it. - The publication gate completes with no ERROR lines, and the warning gate produces no output.
- Every command in the three timeline pages is followed by a verify step with literal expected output.
Rollback
- Discard the content you added (the timeline pages), or clone fresh:
Check the tree is back to the shipped state:
Expected output (only the shipped chapters):
When the gate is clean, open a PR to main. Merges to main deploy automatically via GitHub Actions.