The Diataxis Framework: Sorting Docs Into Four Kinds
Quick answer
Diátaxis is a framework that splits documentation into four kinds: tutorials, how-to guides, reference and explanation. Each kind answers a different reader need, so each gets written differently, and a page works best when it sticks to one. Canonical, the company behind Ubuntu, has announced it is adopting Diátaxis for its documentation.
Diátaxis isn't a template you fill in. The site presents it as a light-weight way of thinking that helps maintainers judge their own work. It covers three things: what to write, how to write it, and how to organise it. Below, we walk through the four kinds, the compass that sorts them, and a small plan for applying them to Markdown docs.
The four kinds and the compass
The Diátaxis site describes four needs and four matching forms. The name comes from Ancient Greek: dia means "across" and taxis means "arrangement."
To decide which kind a page is, the Diátaxis primer offers a compass built on two questions. Does the content inform action (what you do) or cognition (what you know)? Does it serve acquisition of skill (study) or application of skill (work)?
| If the content… | …and serves the reader's… | …it is | | --- | --- | --- | | informs action | acquisition of skill | a tutorial | | informs action | application of skill | a how-to guide | | informs cognition | application of skill | reference | | informs cognition | acquisition of skill | explanation |
The primer says that crossing or blurring these boundaries is at the heart of many documentation problems. A page that teaches, instructs, lists facts and argues a design choice all at once rarely does any of them well.
Tutorials and how-to guides
Both concern action, which is why they get confused.
A tutorial is a lesson. The reader learns by doing something meaningful toward an achievable goal, and the purpose is not to get something done but to learn. The guidance is concrete: show visible results early and often, include the output the reader should expect, and keep explanation to a minimum by linking to it instead. Because it has to work every time for every reader, a tutorial is costly to maintain.
A how-to guide serves someone who already knows what they want. It addresses a real-world goal, assumes basic competence, and sticks to action: no digression, no teaching. Titles should be precise, for example "How to integrate application performance monitoring" rather than "Application performance monitoring."
A quick test: if the reader is new and you are walking them through, it is a tutorial. If the reader has a job to finish, it is a how-to guide.
Reference and explanation
These two concern knowledge.
Reference is a technical description of the machinery. Its rule is to describe, and only describe, in an orderly way. The structure of the documentation should mirror the structure of the product, and the style should be austere, because people consult reference rather than read it. Options, flags, parameters and return values belong here.
Explanation is the discussion: context, the why, design decisions, history and constraints. It is allowed to hold opinions and weigh alternatives, which the other three kinds are not. The Diátaxis site calls it less urgent than the other kinds but no less important.
Applying it to a README or a docs folder
You don't need to rewrite anything to start. The Diátaxis workflow is simple: look at what you have, pick one small improvement, make it, repeat.
For a project with a README and a docs/ folder, a first pass might look like this:
README.md short intro, links out to everything below
docs/
tutorial-first-run.md a lesson: build one small thing end to end
howto-configure-proxy.md one task, no teaching
reference-cli.md every flag, nothing else
about-design.md why it works this wayPrefixing file names with the kind is a convention of ours, not part of the framework, but it makes the sorting visible in a plain folder structure. When you move a paragraph, check it against the compass. Ask what the reader is doing right now: learning, finishing a job, looking something up, or trying to understand. Explanation inside a how-to guide? Link to the explanation page instead. A list of flags inside a tutorial? Link to reference. Plain Markdown files are enough for all of this.
One caveat. The framework doesn't force every sentence into a bucket. When a page sits awkwardly between two kinds, treat that as a signal to split it, not a reason to drop the approach.
How Carets fits in
Sorting docs means opening many small files, moving text between them and keeping each one tidy. Carets is a native notes and code editor for iPhone, iPad and Mac that handles Markdown, plain text and code with syntax highlighting in one place. Your files, projects and tags map neatly onto the four kinds, and the files stay plain text, so they remain portable. That makes it a good fit for drafting or reorganising a README on any of your devices.
Get Carets on the App Store for iPhone, iPad and Mac.
Frequently Asked Questions
What does Diátaxis mean?
The name comes from Ancient Greek: dia means "across" and taxis means "arrangement." It refers to arranging documentation across four kinds of reader need.
Do I need all four kinds for a small project?
No. The primer's advice is to start by applying it to something small and improve one thing at a time. A short project may only need a good README, one how-to guide and a reference page.
How do I tell a tutorial from a how-to guide?
Look at the reader. A tutorial is a lesson for someone learning, while a how-to guide helps a reader who already has the basic skills finish a specific task.
Where does a README fit?
A README often mixes kinds. Keep it short, say what the project is, and link out to a tutorial, how-to guides, reference and explanation rather than holding them all.