Documentation types
Status: drafted, awaiting reviewIts rules are marked one by one.
Decides which type each documentation page is, and how to write a concept, a task, a reference page, an interface guide, a tutorial, a glossary entry, and a troubleshooting topic.
A reader opens a page with one question in mind: what is this, how do I do it, what are the exact values, what does this screen do, or teach me. Each question has its own type of page. A page that answers one question well is easy to write, easy to find, and easy to keep current. A page that tries to answer three ends up answering none of them.
This guide has seven documentation types: five core types (concept, task, reference, interface guide, and tutorial) and two supporting types from DITA (glossary entry and troubleshooting). This section gives the rules for writing each one.
Procedures covers how to write the steps inside a task or a tutorial. This section covers the page around them.
The core types follow DITA, the OASIS open standard for topic-based writing, with two additions: the tutorial, which core DITA lacks, and the interface guide, a narrower kind of reference. Diátaxis by Daniele Procida reaches a similar split from a different starting point, sorting pages by whether the reader is studying or working and whether they need action or knowledge, and it also counts the tutorial as one of its four types. Read it for its reasoning; the rules here are Watership’s own.
Choosing a type
One type per page
Give each page one type, and keep it to that type. Decide before you write whether the page explains, instructs, lists facts, describes a screen, or teaches. When a concept starts growing steps, or a task starts explaining the architecture, move that part to a page of its own and link to it. The example pair is the end of a concept page.
A title that signals the type
Title each page in the form its type uses. A task title starts with a verb (“Create an API key”). A concept title names the idea (“API keys,” “How sync works”). A reference title names the thing listed (“API key fields”). An interface guide takes the screen’s name exactly. A tutorial title names what the learner makes (“Build your first export”). A reader scanning a list of titles should know what kind of page each one is.
Concept
A concept explains an idea, how something works, or why it’s built the way it is. The reader wants to understand before they act.
Open a concept with what the thing is
Open a concept with one sentence that says what the thing is, in words the reader already knows. Background, history, and comparisons come after. A reader who stops after the first sentence should still leave with a correct idea.
No steps in a concept
Don’t put numbered steps in a concept. Explain what the thing is, how it behaves, and when to use it, then link to the tasks that use it. Steps inside a concept get missed by readers who search for the task, and they go stale where nobody looks for them.
Say why it matters
Say why the idea matters to the reader: what it lets them do, what it prevents, or when they would choose it. Use one concrete example from the product. A concept that only defines leaves the reader unsure whether they need it.
One idea per concept
Explain one idea in each concept. When a second idea needs more than a sentence, give it a concept of its own and link to it. A page that explains two ideas makes the reader sort out which part answers their question, and its title can name only one of them. The example pair is the end of a concept page about roles.
A concept stands on its own
Write each concept so it makes sense to a reader who arrives from a search. Don’t lean on the page before it. Name the thing instead of pointing back to it, and link to anything the reader needs to know first. The example pair is the opening of a concept page.
Task
A task gives the steps to complete one goal. The reader already knows what they want to do. Procedures holds the rules for the steps themselves, from proc-state-goal to proc-verify-end.
One goal per task
Cover one goal in each task. The goal is something the reader would name as a single job, such as “create an API key” or “invite a member.” When a page covers two goals, split it, and link the second from the end of the first.
Link the explanation, don’t inline it
Keep explanation in a task to a sentence or two, and link to the concept for the rest. The reader of a task is in the middle of doing something. A paragraph about how the feature works, between steps, costs them their place.
Reference
A reference page holds facts for lookup: the fields of an API, the options of a command, the list of error codes. The reader comes to check one value and leave.
Organize reference like the thing it describes
Arrange a reference page the way the thing it describes is arranged. An API reference follows the API’s resources, a command reference follows the command’s options, and an error list runs in code order. Don’t order entries by how often you think they’re used; the reader already knows the name they’re looking for.
Same shape for every entry
Give every entry the same parts in the same order. For an option or a field, that’s usually the name, the type, the default, and what it does. When a part doesn’t apply, say so (“Default: none”) rather than leaving it out, so the reader can tell a missing value from a missing fact.
timeout: How long to wait. Integer, in seconds. retries (integer, default 3): How many times to try again.timeout (integer, default 30): How long to wait, in seconds. retries (integer, default 3): How many times to try again.Facts only
Write reference as facts, without story or advice. Each entry says what the thing is and what it does. Keep guidance to a short note where a value has a real trap, and put anything longer in a concept or a task.
retries option is really useful when your network is unreliable, and we recommend experimenting to find what works for you.retries (integer, default 3): How many times Acme Cloud retries a failed request before it returns an error.Complete reference
List every value, option, field, or code the thing has, not only the common ones. A reference that leaves an entry out sends the reader to guess or to ask support, and they can’t tell a missing entry from one that doesn’t exist. When an entry is deprecated or internal, list it and say so.
active, paused, and others.active, paused, failed, and archived (deprecated, read-only).Interface guide
An interface guide is a kind of reference: one page for one screen or panel, describing what’s on it and what each element does. The reader is looking at the screen and wants to know what a part of it is for.
One page per screen or panel
Write one interface guide for each screen or panel. A dialog that opens from a screen gets its own page when it has more than a few elements; otherwise it’s a region of the screen that opens it.
Name the screen exactly as the product does
Title the page with the screen’s name exactly as the product shows it. Match the words and the capitals on the screen, so the reader can match the page to what they see. If the screen has no visible name, use the name of the menu item or tab that opens it.
Say what the screen is for and how to get there
Make the first sentence say what the screen is for and how to open it. The reader may have landed on the page from a search and needs to confirm it’s the right screen before reading on.
Elements in screen order, grouped by region
Describe the elements in the order the screen reads, grouped by region. Use the screen’s own regions as headings, such as the toolbar, the list, and the side panel, and within each region follow the screen’s reading order. Don’t sort elements alphabetically or by importance; the reader is moving their eyes across the screen and expects the page to move with them.
Describe each element completely
For each element, give its label exactly as shown, what it does, its default, what changes when you use it, and who can see or change it. Leave out a part only when it can’t apply to that element, such as the default of a button. When a part applies but has no value, say so (“Default: none”), as in any reference. The default and the permissions are the parts most often missing, and they’re the ones support gets asked about.
Link to tasks instead of giving steps
Link to the tasks that use the screen instead of giving steps inline. An interface guide says what each element does; the task says how to reach a goal, which often crosses several screens. End the page, or the entry, with links to those tasks.
Tutorial
A tutorial is a guided lesson: the learner does something real and succeeds. The writer takes responsibility for that success. If a learner follows the page and fails, the page is wrong.
A real result, stated up front
Build the tutorial around one real thing the learner makes, and say what it is in the first paragraph. The result should be small enough to finish in one sitting and real enough that the learner can keep it or use it afterward. A tutorial that only demonstrates features gives the learner nothing to show for the time.
Every step produces a visible result
Make every step produce something the learner can see, and say what it is. The learner doesn’t yet know what right looks like, so each step ends with the output, the screen change, or the file they should now have. A step with no visible result leaves a beginner unsure whether to go on.
acme export create; Run acme export runacme export create. The command prints the new export’s ID; Run acme export run. A file named export-001.csv appears in your bucketOne path, no choices
Give the learner one path, and make the choices for them. Pick the settings, the names, and the sample data. Options and alternatives belong in tasks and reference; in a tutorial, each branch is another place for a beginner to get lost.
tutorial-exports in Acme Storage.Explain little, and link the rest
Keep explanation to what the learner needs to finish the next step, and link to concepts for the rest. A learner is busy doing; a long explanation interrupts the doing and is forgotten by the next step. One sentence of “why” is enough, followed by a link for readers who want more.
Test it from a clean start
Follow the whole tutorial from a clean start before you publish it, and again after each release that touches it. Use a new account or an empty project, exactly as a learner would. Every hidden prerequisite, renamed button, or changed output is a place where the learner fails and blames themselves. The example pair is the opening of a tutorial.
End by naming what the learner built
End the tutorial by saying what the learner built, then link to where they can go next. Name the result in concrete terms, the same result the first paragraph promised. The learner has spent the tutorial following steps, and the ending turns those steps into something they can describe and use again. The example pair is the last paragraph of a tutorial.
tutorial-exports bucket. To change when it runs, see Change an export schedule.Supporting types
Two smaller types come from DITA. Each is short, but each has a fixed shape.
Glossary entry: the term, then one definition
Write a glossary entry as the term followed by a definition of one or two sentences that doesn’t repeat the term. Define one meaning, the one your product uses, and link to the concept page if there is one. The glossary holds the stock terminology list and Watership’s own terms.
List the forms not to use
When a term has forms your product doesn’t use, such as a synonym or an old name, list them in the entry as forms not to use. A writer who reaches for the other form finds the right one, and a linter can flag it. Say why when the reason isn’t obvious.
Troubleshooting: symptom, cause, fix
Title a troubleshooting topic with the symptom as the reader meets it, then give the cause, then the fix. Quote an error message exactly, so a search for it finds the page. Write the fix as a short task that ends with verification. When one symptom has several causes, give each cause its own fix, most likely first.
A test for each cause
Give each cause a test the reader can run, so they know which fix to follow. The test is a command to run, a setting to look at, or a message to find, together with the result that confirms the cause. Without it, the reader tries every fix in turn.
acme keys show <key-id>. An expired key shows status: expired.Say what to do if nothing worked
End a troubleshooting topic with what to do if none of the fixes worked, and who to contact. Say what to collect first, such as the error message, the time it appeared, and the request ID, so the reader doesn’t have to come back for it. A topic that ends after the last fix leaves the reader with nowhere to go.