Editing
You edit a field manual the same way you run it: make a change, render it, and pass the publication gate before it ships. This chapter covers the full loop: what to install, how to clone and preview the site locally, where things live, and how to prove the build is clean before you publish.
1. Tooling
The site builds with Hugo Extended and Go modules. No Node.js, no Python, no extra package manager.
| Tool | Minimum | Why |
|---|---|---|
| Hugo Extended | ≥ 0.168 | Renders the site and pulls the Shell + theme via hugo.yaml |
| Go | ≥ 1.27 | Resolves Hugo modules (go.mod / go.sum) |
Verify
Expected output. The literal version and arch suffix vary by OS and install method, so check the predicates, not the full line:
Quick predicate you can script:
Expected:
Failure:
command not found: hugo→ install Hugo Extended for your OS (e.g.brew install hugoon macOS, then confirm withhugo version | grep extended; the non-extended build cannot compile SCSS).go: command not found→ install from https://go.dev/dl/.
2. Clone
Expected:
Check you have the right repo:
Expected:
3. Render locally
Live preview
Expected output. The baseURL contains a path segment, so the dev server nests under it:
Open http://localhost:1313/CAI-Field-Manual-Hello-World/ in your browser. A 404 at http://localhost:1313/ is expected: the site is not served at the domain root locally either. If you see page content at the nested path, the server is correct.
Failure:
port 1313 already in use→ stop the other Hugo instance or runhugo server --port 1314.
Production build (publication gate)
This is the only correctness check; CI runs the same command:
Expected:
No output means clean. Any other WARN line means the build is not done: fix and re-run. The single allowed warning is css.Sass: libsass from the pinned oink v1.4.0 theme; do not add --panicOnWarning (it would fail on that known warning).
The full build also prints a summary:
Pages and Total will shift as content grows. Match the shape, not the exact numbers: non-zero Pages, Aliases 1 (the editing/ alias for the old prerequisites/ URL), Total under a few seconds.
4. Where things live
| Path | What it controls |
|---|---|
hugo.yaml params.variants | Display-option axes (version 3.4/3.5/3.6 + mode gitops/manual/scripted); option IDs here must match every {{< variant ... >}} in content |
hugo.yaml params.customize | Customize tokens (user, cluster); IDs here must match every {{< customize ... >}} |
hugo.yaml module.imports | Pinned CAI-Field-Manual-Shell commit (version: <hash>) + transitive oink v1.4.0 theme |
hugo.yaml params.ui | Look-and-feel defaults; unset keys come from the Shell module via deep-merge |
Layouts, assets, and static files are not in this repo. They live in CAI-Field-Manual-Shell, imported as a Hugo module. Propose chrome changes there, not here.
5. Making changes
Edit Markdown in content/hello-world/. Keep the existing front-matter keys (title, description, weight, icon) and add new pages as content/hello-world/<slug>/index.md leaf bundles. The default archetype (archetypes/default.md) scaffolds the bundle front matter; edit description and weight to place the page in the left nav. If you ever see draft: true, remove it: drafts are excluded from the build, so the publication gate would still pass while the page stays invisible.
Useful commands:
Expected for hugo mod graph (hash varies with the pinned commit):
After any edit, re-run the publication gate from §3. No separate test suite exists.
6. Finding your way around the page
Two controls sit on every manual page, and Showcase walks through both with screenshots:
- The variant selector above the first heading filters the page to your RHAIE version and ops mode.
- The command palette (search box,
/, or⌘K/Ctrl+K) searches the site and offers page actions such as Copy Markdown and Open in ChatGPT.
The left navigation follows the field-work timeline; within a page, the right-hand outline lists the h2 and h3 headings.