# Technical Documentation Template · Dokly

A template system, not one giant page. Every page gets the same metadata header,
then a strict outline for its page type. Copy the header and the outline you need.

## Quick reference

| Page type       | Primary job          | What belongs there                                 |
|-----------------|----------------------|----------------------------------------------------|
| Overview        | Orientation          | summary, audience, scope, definitions              |
| Getting started | First success        | prerequisites, setup, first task, expected result  |
| Concept         | Shared understanding | how it works, why it's designed that way           |
| How-to guide    | Task completion      | ordered steps, examples, validation, next steps    |
| Reference       | Exact facts          | fields, endpoints, parameters, limits, errors      |
| Troubleshooting | Problem resolution   | symptom, likely cause, fix, escalation path        |
| Changelog       | Change history       | version, date, impact, deprecations                |

Rules that apply to every page:
- One page, one intent. If you can't name the intent in a phrase, split the page.
- Never mix concepts and steps on the same page.
- Replace everything in [brackets]. Delete sections that don't apply.
- Review every page on a schedule. Stale docs are worse than missing docs.

---

## Shared metadata header (top of every page)

```markdown
---
title: [Page title, written as the reader would search for it]
type: [overview | getting-started | concept | how-to | reference | troubleshooting | changelog]
audience: [Who this is for, e.g. "backend developers integrating the API"]
owner: [Team or person responsible for keeping it accurate]
status: [draft | published | deprecated]
last_reviewed: [YYYY-MM-DD]
applies_to: [Product version or release, e.g. "v2.4+"]
---
```

---

## 1. Overview

```markdown
# [Product / feature / system name]

[One or two sentences: what it is and the problem it solves.]

## Who this is for
[Audience and what they should already know.]

## What it does
- [Capability 1]
- [Capability 2]
- [Capability 3]

## What it does not do
[Scope limits, so readers don't go looking for missing features.]

## Key terms
- **[Term]**: [Definition]

## Where to go next
- [Getting started](./getting-started)
- [Core concepts](./concepts)
```

## 2. Getting started

```markdown
# Getting started with [product]

By the end of this guide you will [concrete outcome] in about [N] minutes.

## Prerequisites
- [Account, access, or permission]
- [Tool and minimum version]

## Step 1: [Install / sign up / configure]
[Instruction.]

    [command or code]

## Step 2: [First meaningful action]
[Instruction.]

## Step 3: [Verify it worked]
You should see:

    [expected output]

## Next steps
- [How-to guide for the most common next task]
```

## 3. Concept

```markdown
# [Concept name]

[One-paragraph summary of the idea.]

## How it works
[Explanation. A diagram helps here.]

## Why it's designed this way
[Trade-offs and constraints behind the design.]

## How it relates to other concepts
- [Related concept]: [relationship]

## Related tasks
- [How-to guide that applies this concept]
```

## 4. How-to guide

```markdown
# How to [achieve one specific outcome]

[When and why you'd do this.]

## Before you begin
- [Prerequisite]

## Steps
1. [Action]
2. [Action]
3. [Action]

## Example
    [Complete, working example]

## Verify
[How the reader confirms it worked.]

## Troubleshooting
- **[Symptom]**: [Fix]
```

## 5. Reference (API endpoint)

```markdown
# [METHOD] /[path]

[One sentence: what this endpoint does.]

## Authentication
[Required scheme and scopes.]

## Parameters
| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| [id] | path | string | yes | [Description] |

## Request example
    [curl or SDK example]

## Response
| Field | Type | Description |
|-------|------|-------------|
| [field] | [type] | [Description] |

    [JSON response example]

## Errors
| Status | Code | Meaning | What to do |
|--------|------|---------|------------|
| 400 | [code] | [Meaning] | [Action] |

## Limits
[Rate limits, size limits, pagination.]
```

## 6. Troubleshooting

```markdown
# Troubleshooting [area]

## [Symptom, written as the reader would describe it]
**Likely cause:** [Cause]
**Fix:**
1. [Step]
2. [Step]

**Still stuck?** [Escalation path: support link, logs to attach]
```

## 7. Changelog

```markdown
# Changelog

## [Version] — [YYYY-MM-DD]
### Added
- [New capability, from the user's point of view]
### Changed
- [Behavior change]
### Deprecated
- [What, and the removal date]
### Fixed
- [Bug fix]
```

---

Publish these as a live docs site at https://www.dokly.co. Dokly turns each page into
clean MDX with search, versioned URLs and an auto-generated llms.txt.
