Lesson 5 of 9 · 23m
Review Documentation Like Code, But Not Only Like Code
Use small diffs, technical review, editorial review, preview builds, and release coordination to catch documentation failures before readers do.
Code review culture gives documentation a useful backbone: small changes, diffs, review responsibility, and rollback. It also creates a trap. A technically correct diff can still be bad documentation if it teaches the wrong mental model, interrupts a task flow, or uses precision language the intended reader cannot parse. Docs review needs both engineering judgment and reader judgment.
Small documentation PRs get better review
A PR that rewrites four pages, renames a directory, fixes style, and changes a command example is unreviewable in practice. Split by risk:
PR 1: correct the restore procedure
PR 2: add redirect for old restore URL
PR 3: reorganize backup navigation
PR 4: update screenshots and terminologySmall does not mean trivial. It means the reviewer can reason about one failure mode at a time. Urgent correctness fixes should not wait behind a rebrand.
Review for technical truth first
The technical reviewer should verify commands, defaults, constraints, permissions, and version behavior. Comments should be precise:
This command requires --workspace-id in 0.8.0; the example omits it,
so the documented flow exits with usage_error before reading the config."LGTM" from the wrong reviewer is worse than no review because it creates false confidence. Route API reference to API maintainers, security warnings to security owners, and workflow language to someone who understands the user journey.
Then review for the reader
Reader-focused review asks different questions:
Does the first paragraph say when to use this page?
Are prerequisites before the first destructive step?
Can the reader tell success from failure?
Is there an escape hatch when the procedure does not apply?
Are warnings used only where risk is real?A useful review trick is to read only headings, code blocks, and callouts. If the page cannot be understood at that scan level, the structure needs work before sentence polish matters.
Preview builds are mandatory, not nice-to-have
Markdown that looks fine in an editor can produce broken tables, bad heading levels, malformed links, or unreadable code blocks. Every docs PR should have a deterministic build:
bun install
bun run docs:build
bun run docs:previewReviewers should click the pages that changed, especially when navigation, anchors, images, or generated content moved. Do not approve a redirect rule without testing both the old and new path if the platform supports it.
Coordinate docs with product release
Documentation that ships too early leaks unreleased behavior. Documentation that ships too late leaves users with UI they cannot understand. Tie publication to feature flags, release branches, or explicit launch tasks. For breaking changes, the migration document is part of the release artifact, not a follow-up chore.
Field notes
- A style-guide correction should not block a correctness fix; label editorial polish separately.
- Require review when examples change even if prose does not; copied examples are executable behavior.
- Use PR templates sparingly. A long checklist authors ignore is worse than three questions they answer honestly.
- When review disagreements are about taste, the style guide should decide. When they are about reader outcomes, test with a real reader or support case.
Was this lesson helpful?