Documentation
Content Types (Diátaxis)
| Type | Purpose | User Need |
|---|---|---|
| Tutorial | Learning | "Show me how" |
| How-to | Tasks | "Help me do X" |
| Reference | Information | "What are the details?" |
| Explanation | Understanding | "Help me understand" |
Tutorial Template
# [Title]: Getting Started with [Feature]
## What You'll Learn
- Skill 1
- Skill 2
## Prerequisites
- Requirement 1
- Requirement 2
## Steps
### Step 1: [Action]
[Explanation]
```code
example
Step 2: [Action]
[Explanation]
Next Steps
- [Link to related tutorial]
- [Link to reference]
## How-to Template
```markdown
# How to [Task]
## Overview
Brief description of what this guide covers.
## Prerequisites
- Requirement 1
## Steps
1. **Do this first**
[Explanation if needed]
2. **Then do this**
```code
example
Troubleshooting
Common Issue
Solution to common issue.
Related
- [Link to related content]
## Writing Guidelines
### Clarity
- Use active voice
- Keep sentences short
- One idea per paragraph
- Use consistent terminology
### Structure
- Lead with the most important info
- Use headings for scanability
- Include code examples
- Add visual aids
### Accessibility
- Use descriptive link text
- Add alt text to images
- Ensure proper heading hierarchy
- Consider screen readers
## Documentation Review Checklist
- [ ] Technically accurate
- [ ] Clear and concise
- [ ] Follows style guide
- [ ] Code examples tested
- [ ] Links working
- [ ] Images have alt text