Skip to content

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​

Tier: avoidtype-one-per-pageCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
An API key identifies your app to Acme Cloud. To create one, open the Keys page, select Create key, and copy the key.
Write
An API key identifies your app to Acme Cloud. To create one, see Create an API key.

A title that signals the type​

Tier: prefertype-title-signals-typeCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Working with API keys
Write
Create an API key

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​

Tier: avoidtype-concept-define-firstCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Over the years, teams have needed more control over who can read their data, which led to the introduction of roles.
Write
A role is a named set of permissions that you give to a member of a project.

No steps in a concept​

Tier: avoidtype-concept-no-stepsCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Roles control access. To give someone a role: open Members; select the member; choose a role.
Write
Roles control access. To give someone a role, see Change a member’s role.

Say why it matters​

Tier: prefertype-concept-whyCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
A read-only key can read data but can’t change it.
Write
A read-only key can read data but can’t change it, so a dashboard that only displays numbers can’t delete a project if its key leaks.

One idea per concept​

Tier: avoidtype-concept-one-ideaCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Roles control what a member can do. Billing works differently: each project has one billing account, and Acme Cloud sends the invoice on the first day of each month.
Write
Roles control what a member can do. For how a project is billed, see Billing accounts.

A concept stands on its own​

Tier: avoidtype-concept-stand-aloneCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
As the previous page described, this feature lets you limit access.
Write
Roles limit what each member of a project can do. They’re built from permissions, which Permissions explains.

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​

Tier: avoidtype-task-one-goalCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Create and rotate API keys
Write
Create an API key
Tier: avoidtype-task-link-contextCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Before you choose a role, it helps to understand how Acme Cloud evaluates permissions, which happens in three stages: project, folder, and object.
Write
Choose a role. For how roles combine, see Roles and permissions.

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​

Tier: avoidtype-ref-mirror-thingCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Common errors: 404, 401, 500. Other errors: 400, 403.
Write
Errors: 400, 401, 403, 404, 500.

Same shape for every entry​

Tier: avoidtype-ref-same-shapeCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
timeout: How long to wait. Integer, in seconds. retries (integer, default 3): How many times to try again.
Write
timeout (integer, default 30): How long to wait, in seconds. retries (integer, default 3): How many times to try again.

Facts only​

Tier: avoidtype-ref-austereCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
The retries option is really useful when your network is unreliable, and we recommend experimenting to find what works for you.
Write
retries (integer, default 3): How many times Acme Cloud retries a failed request before it returns an error.

Complete reference​

Tier: avoidtype-ref-completeCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Status values: active, paused, and others.
Write
Status values: 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​

Tier: avoidtype-ui-one-screenCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Project settings and members
Write
Project settings

Name the screen exactly as the product does​

Tier: avoidtype-ui-exact-nameCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Managing your team
Write
Members

Say what the screen is for and how to get there​

Tier: avoidtype-ui-purpose-and-pathCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
This page describes the Members screen.
Write
The Members screen, at Settings > Members, shows who belongs to a project and what role each person has.

Elements in screen order, grouped by region​

Tier: avoidtype-ui-screen-orderCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
headings: Delete; Filter; Invite; Role
Write
headings: Toolbar (Invite, Filter); Member list (Role, Delete)

Describe each element completely​

Tier: avoidtype-ui-element-entryCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Role: Sets the member’s role.
Write
Role: Sets what the member can do in the project. Default: Viewer. A change takes effect the next time the member loads a page. Only owners can change it.
Tier: avoidtype-ui-link-tasksCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Invite: Opens the invitation dialog. Enter the person’s email address, choose a role, and select Send.
Write
Invite: Opens the invitation dialog. See Invite a member.

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​

Tier: avoidtype-tut-real-resultCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
This tutorial introduces the main features of Acme Cloud exports.
Write
In this tutorial, you set up a nightly export of your project data to a storage bucket and check the first file it writes.

Every step produces a visible result​

Tier: avoidtype-tut-visible-resultCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
steps: Run acme export create; Run acme export run
Write
steps: Run acme export create. The command prints the new export’s ID; Run acme export run. A file named export-001.csv appears in your bucket

One path, no choices​

Tier: avoidtype-tut-one-pathCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Choose a storage provider. You can use any provider Acme Cloud supports.
Write
Create a bucket named tutorial-exports in Acme Storage.

Explain little, and link the rest​

Tier: avoidtype-tut-minimal-explanationCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Before we create the export, let’s look at how Acme Cloud schedules jobs, which uses a queue with three priority levels.
Write
The export runs every night at 2 a.m. UTC. To learn how schedules work, see Export schedules.

Test it from a clean start​

Tier: avoidtype-tut-testedCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
This tutorial assumes your project is already set up.
Write
Before you begin, create a free Acme Cloud account. The tutorial starts from an empty project.

End by naming what the learner built​

Tier: avoidtype-tut-name-what-you-builtCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
You have reached the end of the tutorial.
Write
You built a nightly export that writes your project data to the 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​

Tier: avoidtype-glossary-entryCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Role: A role is the role a member has.
Write
Role: A named set of permissions given to a member of a project. See Roles and permissions.

List the forms not to use​

Tier: avoidtype-glossary-forms-not-to-useCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
Workspace: The place where a team’s projects and members live.
Write
Workspace: The place where a team’s projects and members live. Don’t use: team space, project group (the name before version 3).

Troubleshooting: symptom, cause, fix​

Tier: avoidtype-troubleshootingCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
Authentication issues
Write
“401 Unauthorized” when you call the API

A test for each cause​

Tier: avoidtype-trouble-cause-testCheck: judgmentStatus: drafted, awaiting review

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.

Instead of
The key may have expired, or it may not have the right role.
Write
The key may have expired. To check, run acme keys show <key-id>. An expired key shows status: expired.

Say what to do if nothing worked​

Tier: avoidtype-trouble-if-nothing-workedCheck: judgmentScope: whole documentStatus: drafted, awaiting review

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.

Instead of
If the error persists, try again later.
Write
If none of these fixes works, contact Acme Cloud support from Help > Contact support. Include the full error message, the time it appeared, and the request ID from the response.