Design preview
Watership Check API
The Watership Check API checks prose against the Watership style guide, UX writing guide, and slop guard, and each finding names the rule it breaks. These docs are an example for technical writers and developers: a complete API documentation set, written in the types of the DITA content model.
The hosted service doesn’t exist yet. The docs and the OpenAPI spec do, and every example runs against a local mock server built from that spec. The docs are an example in the Watership Content Model.
How these docs are organized
Every page is one type, and each type does one job. The navigation groups pages by type, so you can tell from the sidebar whether a page will teach you, walk you through a job, explain an idea, or give you facts.
- Tutorials
- A guided lesson. You do something real, every step shows you a result, and the lesson is written so that you finish it. Explanation is kept short and linked. Check your first draft
- Tasks
- Steps for one goal you already have, such as blocking a pull request on errors or handling rate limits. Check a pull request in CI
- Concepts
- How something works and why: tiers, where rules come from, and why the API reports rule ids instead of rewriting text. Why findings carry rule ids
- Reference
- Facts to look up, arranged like the API itself: every endpoint, field, error, and limit. The endpoint pages are generated from the OpenAPI spec. The finding object
- Interface guides
- A kind of reference with one page per screen. It names each element on the screen, says what it does, and links to the tasks that use it. Playground
Where the model comes from
The types come from the Watership DITA content model, which is based on DITA, an open standard for technical content from the Organization for the Advancement of Structured Information Standards (OASIS). DITA’s core topic types are concept, task, and reference. Watership adds two: the tutorial, because DITA has no core tutorial type, and the interface guide, a reference page for a single screen. It also keeps two supporting types from DITA: the glossary entry and troubleshooting.
A comparable system is Diátaxis by Daniele Procida. It arrives at a similar split by a different route, and the tutorial is one of its four types. Watership credits it as related work. Watership’s types are built on DITA and don’t reuse Diátaxis text or diagrams.
Built for tools as well as people
- openapi.yaml: the OpenAPI 3.1 spec, linted on every build
- llms.txt: every page with a one-line summary
- llms-full.txt: the full text of every page
Watership Content Model
These docs are one of the open resources from Watership. The links to the others are at the foot of every page.