03.6.5 · Skill in Content design

Documentation UX

Help content that people can find and use while they work.

Documentation is part of the product experience. It needs structure, search, examples and maintenance. For developer products it is often the most visited part of the product.

Your status · Documentation UX

Saved in this browser. Sign in to keep it on every device.It colours this skill's tile on your map.

Why it matters for a product engineer

Documentation is part of the product. People open it when they are stuck or about to build something, so it shapes whether they continue. For developer products it is often the most visited part of the product. It needs structure, search, examples and maintenance, the same as the code it describes.

How to do it

  1. Separate four kinds of pages: tutorials to learn, how-to guides for a task, reference for facts, and explanation for understanding. Do not mix them on one page.
  2. For each page, ask two questions: does it help the reader act or understand, and is the reader studying or working?
  3. Start every how-to guide with the goal and list concrete steps. Put background in a link to an explanation page.
  4. Make reference complete and consistent. Generate it from the code where you can.
  5. Add search, and read what people search for and do not find.
  6. Update the docs in the same change as the feature, and test the examples.

Common mistakes

  • A tutorial that stops to explain every option, so the reader never finishes it.
  • Reference pages with only obvious information, written by someone who already knows the answer.
  • Help pushed at people when they start, before they have a problem.
  • Examples that no longer run after a release.

Example

Django’s documentation tells readers how it is organised before anything else. Tutorials “take you by the hand” to build a web application. Topic guides discuss key concepts and give background. Reference guides describe the APIs and assume the concepts are known. How-to guides are recipes for key problems. A reader can choose the right page by the need they have now.

Two by two

Django's documentation on the Diátaxis compass

  1. 1TutorialsBuild a web app step by step
  2. 2How-to guidesRecipes for key problems
  3. 3Topic guidesConcepts and background
  4. 4Reference guidesAPIs, for people who know the concepts

Each of Django's four kinds of pages answers one need. Only the explanation pages have a different name: topic guides.

ReportedDiátaxis compass and the Django documentation home page

Sources: Diátaxis (Daniele Procida) ↗ · The compass (Diátaxis) ↗ · Help and documentation, usability heuristic 10 (NN/g) ↗ · Django documentation (Django Software Foundation) ↗

Resources

2
  • docsStart here
    Diátaxis ↗
    Daniele Procida · free guide

    Four kinds of documentation (tutorials, how-to guides, reference, explanation) and why mixing them fails.

  • articleStart here
    Help and documentation (usability heuristic 10) ↗
    NN/g · 2020 · 9 min

    Proactive and reactive help, and how to keep it short and close to the task.