2.0 KiB
2.0 KiB
Documentation Quality Best Practices
Use this reference when writing or reviewing docs for clarity, correctness, and trust.
Core Writing Principles
- Write for a specific audience and task.
- Lead with outcomes, not internal implementation details.
- Keep concepts, tasks, and references distinct.
- Make examples executable and verifiable.
- Prefer precise language over marketing language.
!!! info "Primary references" - Diataxis - Divio documentation system - Write the Docs guide
Style and Readability
- Use consistent terminology and avoid synonym drift.
- Use short paragraphs and meaningful headings.
- Prefer active voice and imperative instructions for task pages.
- Add notes/warnings only for high-impact caveats.
!!! info "Style sources" - Google developer style - Microsoft Writing Style Guide - MDN writing guidelines
Task Page Quality Pattern
Each task page should include:
- Goal and scope.
- Prerequisites (permissions, versions, environment).
- Step-by-step procedure.
- Expected result and verification command/output.
- Common failure modes and recovery path.
- Related links (concept, reference, troubleshooting).
Quality Gates Before Publish
- Accuracy: commands and code examples are validated.
- Completeness: no critical missing steps.
- Discoverability: page is linked from at least one overview page.
- Freshness: version-specific notes and dates are present where needed.
- Accessibility: heading structure and link text are clear.
Anti-Patterns
- Mixing conceptual explanation and long procedural flow in the same section without structure.
- Hiding prerequisites mid-page.
- Using screenshots as the only source of truth for commands.
- Publishing pages with no owner and no review cadence.