Alex Abreu

Tech Writer and Documentation Manager

What is the magic?: A good document

You may have come across the diagram below, (courtesy of Diataxis) suggesting that all technical documentation falls into one of four categories:

Diataxis diagram

This is a helpful Information Architecture (IA) idea, and here’s is some top-notch analysis from I’d Rather Be Writing. Or, if you have the time and interest, this disarming writer from Django explains the idea very well.

But each of these categories deserves some further explanation, so I’ll borrow that great cooking metaphor below.

Tutorials

Tutorials are guided lessons by an expert teacher for a beginner. Think of it like teaching a child to cook. It doesn’t matter that the user isn’t a pro at the end, but the process should inspire confidence and help the user see the usefulness of what they’ve done.

EXAMPLE:

Gatsby’s Getting Started Tutorial

I love that Gatsby includes a video in this example, placed below the introduction and offering the experience of a live teacher for the user to follow along.

How-to guides

Guides are step-by-step directions to achieve a specific end. These are like recipes, presenting the solutions to tasks your user will be looking to complete.

EXAMPLE:

Twilio’s Use the Flex Dialpad Guide

Notice the docs that support this how-to guide in the left sidenav. Reference docs are readily available, and there’s a page on keyboard shortcuts to make an interested user a power user.

Explanation

Explanations are discussions presented to clarify the history or subtleties of a topic. This is like a book about cooking as a practice.

EXAMPLE:

Amazon’s Monitoring and Observability Page

This example explains AWS Observability, a concept that justifies the CloudWatch service. Notice the “Related services” section ties this concept directly to existing services.

Reference

Reference guides are designed to describe componenets in a system. These are like encyclopedia entries for the ingredients in a recipe.

EXAMPLE:

Stripe’s API Events Object

Notice all these objects and endpoints are on a single webpage, so all can be readily searched. Notice that summary information is not included here, just a link to the “related guide” where that more specific context resides.

Applying this idea

It may be too much to go back through old documentation to convert the material to these types. It can be enough to approach new and updated content with these categories in mind so that order emerges over time.

These documentation principles aren’t dogmatic. They work best as guide rails, not hurdles. Intent can be more effective than strict rules. Content is flexible so principles should be too, because there are often a number of ways to achieve a successful outcome.