Run these checks from the worktree directory before committing or pushing. All four must pass.
npx prettier --write docs/[section]/**/*.mdPrettier auto-formats markdown. Run with --write to fix in place, or --check to see what would change without modifying files.
npx markdownlint-cli --config .markdownlint.yaml docs/[section]/**/*.mdCatches structural issues: fenced code blocks without language tags, inconsistent list markers, heading levels, etc. Fix errors manually.
vale sync
vale docs/[section]/vale sync downloads the latest style rules. vale then checks for style violations: em dashes, obscure abbreviations, parenthetical plurals, title case in headings, and other Viam style rules. Fix errors manually.
make build-prodThis runs a production Hugo build. It catches broken shortcodes, missing pages referenced by links, invalid frontmatter, and template errors. Warnings about old page dates are expected and can be ignored. The build must complete without errors.
Kill any running Hugo servers, clear the public/ directory, and start a fresh dev server:
pkill -f "hugo server"
rm -rf public/
hugo server --port 1313 --disableFastRenderOpen the changed pages in a browser and verify they render correctly.
Run prettier first because it can change line breaks that affect markdownlint results. Run vale after markdownlint because some markdownlint fixes (like adding language tags to code blocks) can resolve vale false positives. Run make build-prod last because it is the slowest and catches the broadest class of errors.