|
| 1 | +--- |
| 2 | +description: Maps folder conventions to Diataxis content types so AI tools produce the right structure for each doc category. |
| 3 | +globs: ["**/*.md", "**/*.mdx"] |
| 4 | +alwaysApply: false |
| 5 | +--- |
| 6 | + |
| 7 | +# Content types (Diataxis) |
| 8 | + |
| 9 | +> **Note for this repository:** `docs-template` itself is a guide and template site — its content |
| 10 | +> is organized by task (`contribute/`, `create/`, `configure/`) rather than by Diataxis type. |
| 11 | +> The conventions below do **not** apply to files in this repo. |
| 12 | +> They are recommended for any **product documentation site** created using this template. |
| 13 | + |
| 14 | +The [Diataxis framework](https://diataxis.fr/) organizes documentation by function. In a product |
| 15 | +docs site, the folder a file lives in determines the content type and structure expectations. |
| 16 | + |
| 17 | +## Folder-to-type mapping |
| 18 | + |
| 19 | +### `concepts/` - Explanation |
| 20 | + |
| 21 | +- Explain **why** something exists and **how** it works at a high level. |
| 22 | +- Provide context: design decisions, historical reasons, trade-offs, and alternatives. |
| 23 | +- Make connections to other parts of the system or to broader industry concepts. |
| 24 | +- Do not include step-by-step instructions. Link to related guides or quickstarts instead. |
| 25 | +- Keep explanation closely bounded. Do not let instructions or reference details creep in. |
| 26 | + |
| 27 | +### `how-to/` - How-to |
| 28 | + |
| 29 | +- Goal-oriented steps that help the reader achieve a specific outcome. |
| 30 | +- Title the page with the goal (for example, "Configure rate limits"), not a generic label. |
| 31 | +- State the goal in the first sentence or heading. |
| 32 | +- List prerequisites before the first step. |
| 33 | +- Number the steps. Each step should contain one action. |
| 34 | +- Assume the reader has basic knowledge of the product. |
| 35 | +- Omit the unnecessary. Practical usability matters more than completeness. |
| 36 | +- Do not digress into explanations or teaching. Link to concept pages instead. |
| 37 | + |
| 38 | +### `get-started/` - Onboarding |
| 39 | + |
| 40 | +`get-started/` pages are onboarding essentials: installation, system requirements, connecting |
| 41 | +to services, and initial configuration. |
| 42 | + |
| 43 | +Choose structure based on the topic (how-to steps, short explanation, or reference-style facts) |
| 44 | +and match conventions of neighboring pages in the same `get-started/` section. |
| 45 | + |
| 46 | +### `reference/` - Reference |
| 47 | + |
| 48 | +- Precise, complete, structured descriptions of APIs, CLI options, methods, and parameters. |
| 49 | +- Describe and only describe. Be austere, neutral, and factual. |
| 50 | +- Match the format used in surrounding reference pages. |
| 51 | +- Mirror the structure of the API or code itself (for example, one section per method or endpoint). |
| 52 | +- Include short usage examples to illustrate parameters and return values. |
| 53 | +- Keep explanatory prose to the minimum needed to use the API correctly. |
| 54 | +- Do not include tutorials or extended how-to steps. |
| 55 | + |
| 56 | +### `tutorials/` - Tutorial |
| 57 | + |
| 58 | +- Learning-oriented, reproducible, end-to-end walkthrough. |
| 59 | +- State what the reader will build or accomplish at the very start. |
| 60 | +- Do not assume the reader has prior knowledge of the subject or tools. |
| 61 | +- Deliver visible results early and often. Each step should produce output the reader can verify. |
| 62 | +- Show expected output (for example, "You should see `Connected`"). |
| 63 | +- Ruthlessly minimize explanation. Keep the focus on doing, not theory. Link to concept pages for |
| 64 | + deeper understanding. |
| 65 | +- Ignore options and alternatives. Guide the reader along a single path to a successful conclusion. |
| 66 | +- Provide a complete working configuration or code sample. |
| 67 | +- Aspire to perfect reliability. Test every step. |
| 68 | + |
| 69 | +## Frontmatter |
| 70 | + |
| 71 | +For required and optional documentation frontmatter (`description`, `keywords`, `sidebar_label`, |
| 72 | +`title` vs duplicate H1), see **Frontmatter** in `markdown-formatting.mdc`. |
0 commit comments