Quick reference
Author, check, build, ship: four blocks that keep a page true.
Author
git switch -c docs/adr-0042
mkdocs serve -a 127.0.0.1:8000
hugo server -D
vale sync
git add docs && git commit -SCheck
vale --minAlertLevel=error docs/
npx markdownlint-cli2 'docs/**/*.md'
codespell -q 3 docs/
lychee --no-progress './docs/**/*.md'
npx @redocly/cli lint openapi.yamlBuild
mkdocs build --strict
sphinx-build -W -b html docs docs/_build
hugo --minify --gc
mdbook build
npx docusaurus buildShip
mkdocs gh-deploy --force
netlify deploy --prod --dir=site
aws s3 sync site/ s3://docs-bucket --delete
aws cloudfront create-invalidation --distribution-id $DIST --paths '/*'
git tag -s docs-2026.10 -m 'docs release'In one line: Docs that do not build are drafts. The pipeline is the only reviewer that never skips.
Run the check:
vale --minAlertLevel=error docs/Explained
Author in the same repository as the code. A branch, a preview server, and a prose linter whose style package is pinned, so two people lint against the same rules.
Check before review. Vale for style, markdownlint for structure, codespell for typos, lychee for links. A broken link caught in CI costs a minute; caught by a customer it costs a support ticket.
Build with warnings as errors. mkdocs build --strict, sphinx-build -W and a failing link checker turn a broken reference into a red pipeline, which is the only review that never gets skipped on a Friday.
Ship from the pipeline. gh-deploy, netlify deploy or s3 sync plus an invalidation, tagged with the release, so you can answer which page was live when somebody read it.
The honest caveat: a linter checks the words, not the truth. Vale will pass a well-written paragraph about a service that no longer exists, so the build cannot be the only reviewer.
The lesson: author, check, build, ship, and let the pipeline fail.
Your turn: Which command is missing from your docs pipeline?
Related on this site
More notes: Documentation & knowledge
- P1041The documentation stack: source, build, publish, measure
- P1040Four numbers for a docs page
- P1039API documentation that answers questions
- P1037Five rules for diagrams that survive
- P1036Onboarding docs that shorten week one
- P1035Turning an incident into a runbook
- P1034Five docs that pay for themselves
- P1033Writing an ADR people read
Open in the notes app: search, filters, copy This note on GitHub