# Documentation types

Source: https://watership.ca/style-guide/documentation-types/

*Drafted, awaiting review. Its 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](https://diataxis.fr/) 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

Rule `type-one-per-page`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-one-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.

*Drafted, awaiting review.*

- 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

Rule `type-title-signals-type`: prefer, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-title-signals-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.

*Drafted, awaiting review.*

- 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

Rule `type-concept-define-first`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-concept-define-first

**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.

*Drafted, awaiting review.*

- 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

Rule `type-concept-no-steps`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-concept-no-steps

**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.

*Drafted, awaiting review.*

- 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

Rule `type-concept-why`: prefer, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-concept-why

**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.

*Drafted, awaiting review.*

- 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

Rule `type-concept-one-idea`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-concept-one-idea

**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.

*Drafted, awaiting review.*

- 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

Rule `type-concept-stand-alone`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-concept-stand-alone

**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.

*Drafted, awaiting review.*

- 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

Rule `type-task-one-goal`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-task-one-goal

**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.

*Drafted, awaiting review.*

- Instead of: Create and rotate API keys
- Write: Create an API key

### Link the explanation, don’t inline it

Rule `type-task-link-context`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-task-link-context

**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.

*Drafted, awaiting review.*

- 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

Rule `type-ref-mirror-thing`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-ref-mirror-thing

**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.

*Drafted, awaiting review.*

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

### Same shape for every entry

Rule `type-ref-same-shape`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-ref-same-shape

**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.

*Drafted, awaiting review.*

- 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

Rule `type-ref-austere`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-ref-austere

**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.

*Drafted, awaiting review.*

- 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

Rule `type-ref-complete`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-ref-complete

**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.

*Drafted, awaiting review.*

- 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

Rule `type-ui-one-screen`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-ui-one-screen

**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.

*Drafted, awaiting review.*

- Instead of: Project settings and members
- Write: Project settings

### Name the screen exactly as the product does

Rule `type-ui-exact-name`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-ui-exact-name

**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.

*Drafted, awaiting review.*

- Instead of: Managing your team
- Write: Members

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

Rule `type-ui-purpose-and-path`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-ui-purpose-and-path

**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.

*Drafted, awaiting review.*

- 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

Rule `type-ui-screen-order`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-ui-screen-order

**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.

*Drafted, awaiting review.*

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

### Describe each element completely

Rule `type-ui-element-entry`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-ui-element-entry

**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.

*Drafted, awaiting review.*

- 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.

### Link to tasks instead of giving steps

Rule `type-ui-link-tasks`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-ui-link-tasks

**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.

*Drafted, awaiting review.*

- 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

Rule `type-tut-real-result`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-tut-real-result

**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.

*Drafted, awaiting review.*

- 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

Rule `type-tut-visible-result`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-tut-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.

*Drafted, awaiting review.*

- 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

Rule `type-tut-one-path`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-tut-one-path

**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.

*Drafted, awaiting review.*

- 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

Rule `type-tut-minimal-explanation`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-tut-minimal-explanation

**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.

*Drafted, awaiting review.*

- 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

Rule `type-tut-tested`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-tut-tested

**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.

*Drafted, awaiting review.*

- 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

Rule `type-tut-name-what-you-built`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-tut-name-what-you-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.

*Drafted, awaiting review.*

- 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

Rule `type-glossary-entry`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-glossary-entry

**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](https://watership.ca/glossary/) holds the stock terminology list and Watership’s own terms.

*Drafted, awaiting review.*

- 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

Rule `type-glossary-forms-not-to-use`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-glossary-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.

*Drafted, awaiting review.*

- 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

Rule `type-troubleshooting`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-troubleshooting

**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.

*Drafted, awaiting review.*

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

### A test for each cause

Rule `type-trouble-cause-test`: avoid, judgment. Address: https://watership.ca/style-guide/documentation-types/#type-trouble-cause-test

**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.

*Drafted, awaiting review.*

- 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

Rule `type-trouble-if-nothing-worked`: avoid, judgment, whole document. Address: https://watership.ca/style-guide/documentation-types/#type-trouble-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.

*Drafted, awaiting review.*

- 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.

## About this section

**Rules.** 30 in this section: 0 mechanical, 30 judgment. Tiers: 0 never, 28 avoid, 2 prefer.

**Where the sources differ.** Core DITA has no tutorial type and treats a page about a screen as plain reference; the stock adds the tutorial as a core type and the interface guide as a kind of reference, because readers learning a product and readers looking at one screen need different pages. Diátaxis also has a tutorial type, but it has no glossary entry or troubleshooting topic; the stock keeps both from DITA.

**Sources.** OASIS Darwin Information Typing Architecture (DITA) and Diátaxis by Daniele Procida.
