DR-004: Adopt Diataxis Framework for Documentation Organization
Status
- [x] Accepted
- [ ] Proposed
- [ ] Rejected
- [ ] Deprecated
- [ ] Superseded
Date: 2025-11-03
Context
Docs need to serve different user intents: learning, solving problems, understanding concepts, looking up details. Traditional flat/component-based structures don't map to these needs.
Problem: How to organize docs for different user needs with consistency and discoverability?
Decision
Diataxis framework with four categories:
- Tutorials (
docs/tutorials/): Learning-oriented, step-by-step, little prior knowledge - How-To Guides (
docs/how-to-guides/): Problem-oriented, single task, actionable steps - Explanation (
docs/explanation/): Understanding-oriented, concepts, context, design - Reference (
docs/reference/): Information-oriented, precise, comprehensive (e.g.,specifications/,decision-records/)
Structure:
Consequences
Positive: Clear intent mapping, no duplication, category-specific quality, predictable structure, scalable, industry standard
Negative: Learning curve, navigation overhead, migration effort
Alternatives Considered
- Flat Structure: Rejected - hard to navigate, no learning path, scales poorly
- Component-Based: Rejected - duplicates patterns, no intent guidance, mixes types
- README-Heavy: Rejected - files become long, inconsistent, poor cross-referencing
- Wiki-Style: Rejected - no structure, disorganized, hard to review, separate from code
Related Decisions
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.