Filters
How to search
  • Plain words find names, texts and examples.
  • "two words" finds the exact phrase.
  • --name or -x finds an option.
  • #word looks only inside commands.
  • @grep finds lessons and labs that use grep.
  • Filters: cat:network · in:labs · in:notes · level:rhcsa · ch:8 · root:yes. Put ! before a word to leave it out. OR between words means one of them.
  • ↑ ↓ to move · Enter to open · Esc to close · / to search

Documentation & knowledgeMixed 22 series

Docs-as-code commands

Docs-as-code is four blocks deep: author, check, build, ship. Most teams run the first and skip the rest.

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 -S

Check

vale --minAlertLevel=error docs/
npx markdownlint-cli2 'docs/**/*.md'
codespell -q 3 docs/
lychee --no-progress './docs/**/*.md'
npx @redocly/cli lint openapi.yaml

Build

mkdocs build --strict
sphinx-build -W -b html docs docs/_build
hugo --minify --gc
mdbook build
npx docusaurus build

Ship

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?

More notes: Documentation & knowledge

Open in the notes app: search, filters, copy This note on GitHub