The Watership DITA content model

The content model is the set of documentation types an organization writes its documentation in. Each type answers one kind of reader need, has a fixed set of parts, and links to the other types in set ways.

A reader opens documentation with one need at a time. They want to understand something, or get one thing done, or look up a fact, or find out what a control on a screen does, or learn by doing, or fix something that went wrong. A page that tries to meet two of those needs at once usually meets neither: the steps get buried in explanation, or the explanation gets cut into steps.

The content model gives each need its own type of page. Writers choose the type before they write, so they know what the page must contain and what to leave out. Readers learn the shapes and find their way faster. Tools can check a page against its type.

The types

Five core types cover most documentation. Two supporting types, inherited from DITA, cover definitions and problems.

Type The reader
Concept wants to understand an idea, how something works, or why.
Task knows what they want to do and needs the steps.
Reference needs a fact: an option, a limit, a code, a status.
Interface guide is looking at a screen and wants to know what is on it and what each part does.
Tutorial is new and wants to learn by building something real, with the writer guiding every step.
Glossary entry meets a term and needs its meaning.
Troubleshooting has a problem and wants it gone.

How to choose a type turns the table into decisions, and How the types link to each other sets out which types point to which.

Built on DITA

The model is based on DITA, the Darwin Information Typing Architecture, an open standard maintained by the OASIS DITA Technical Committee. Concept, task, reference, glossary entry, and troubleshooting are DITA’s own topic types. The model builds on them as the standard defines them, with a few added requirements that each type’s page sets out.

The model adds two types that core DITA doesn’t have. The interface guide documents one screen, and the tutorial guides a learner through a lesson. Both are DITA specializations: new types defined on top of existing ones, so any DITA tool can still process them. Why DITA, and how the types are built explains how they are built.

Other systems split documentation in similar ways. Comparison with Diátaxis compares this model with one of them.

What this site contains

  • One page per type, with its purpose, its required parts, and its rules.
  • A worked example of every type, each a real DITA topic of that type, documenting one fictional web app.
  • The grammar for the two specializations, as DTDs in a DITA Open Toolkit plugin, and an element reference for them.
  • types.json, the types as data for tools such as the Watership engine, generated from these pages at build time.

The Watership Content Model

The DITA content model is one of the open resources from Watership. It’s part of the content standards in the Watership Content Model, which takes its documentation types from it. The others are the Style guide, UX writing guide, Slop guard, the Glossary, Voices, Tone scales, the API docs example, and the Vale checks.

Release 0.1.0. The text is licensed under Creative Commons Attribution 4.0.