Documentation Standards
Based on the team's Code of Conduct for Documentation. Apply these guidelines when writing any document intended for the wiki or team consumption.
Writing Standards
- Write in English.
- Explain, don't just describe. State the why, not just the what.
- Plain language. Avoid jargon unless defined in the document. Platform-specific or uncommon terms should be explained on first use.
- Active voice, concise sentences. Lead with the subject and action.
- As much as necessary, as little as possible. Avoid over-documentation that becomes stale quickly. Keep it lean.
- Don't mirror code. Small code examples are fine for illustration. Don't copy-paste implementation code into docs. The code is documented in the repository with comments.
- Provide examples, diagrams, or visuals where they aid understanding. Tables and code blocks are preferred over long prose.
Tone and Framing
- Frame positions as proposals, not conclusions. Present direction, invite alignment.
- Acknowledge the current state without implying it is wrong. The people who built it are the audience.
- Avoid postulating. Replace "the platform must", "the only way" with collaborative language: "the platform should", "one approach is".
- Critique processes and systems, not people or teams.
- Separate aspiration from assessment. When describing a future state, don't let it read as criticism of the present.
Structure and Formatting
- Use templates if one exists for the document type (ADR, spec, runbook, meeting note).
- Table of contents for documents longer than 3 sections.
- Headings, bullet points, numbered lists, and panels for readability.
- Collapsible sections for large text blocks or code snippets (use expands/details).
- Code snippets must be properly formatted with language hints.
Maintenance
- Review and update documentation when the platform changes.
- Archive outdated documents clearly. Don't leave stale docs without marking them.
- Assign ownership. Every document should have a clear maintainer.
Collaboration
- Document reviews for significant updates to ensure accuracy.
- Document decisions and rationale during discussions.
Review Etiquette
- Comment only when content is unclear. Don't nitpick style if meaning is clear.
- Fix spelling, grammar, and sentence structure directly rather than commenting about them.
- Communicate directly with the writer. Call rather than start a comment thread.
- State clearly when the review is done.
Applying These Guidelines
When writing documentation:
- Start with the purpose: what is this document and who is it for?
- Lead with the decision or outcome, then explain the reasoning
- Use tables for comparisons, options, or structured data
- Use code blocks for paths, commands, config examples (keep them short)
- End with next steps or open questions if applicable
- Review against the checklist above before publishing
Source: svnlto/nix-config — distributed by TomeVault.