Document the task, not the screen

Docs that walk through every field on a settings page answer questions nobody asks. How to find the tasks your readers came for and write pages around them.

Sahil Gadimbayli

Founder & CTO

Writing docs4 min read

Open the docs of almost any product and you'll find a page like this:

Settings. The Settings page has the following fields. Name: the name of your project. Slug: the slug of your project. Domain: the domain of your project.

Every sentence is accurate. None of it helps. Nobody arrives at a docs page wanting to know what the Name field is. They arrive with a job to do: "How do I put our docs on our own domain?" The page above mentions the Domain field and stops exactly where their question starts.

Screens are how you built it

Docs that mirror the interface are easy to write because the structure is already there. Walk the navigation, one page per screen, one paragraph per field. It feels complete, and it's organised the way the product team thinks about the product.

Readers don't think in screens. They think in outcomes. "Invite my designer." "Stop the site going down when I rename a page." "Move our docs off the old platform." A screen-by-screen manual makes them work out which screens, in which order, add up to their outcome. That's the hard part, and the docs have left it to them.

Find the tasks

You don't have to guess what people are trying to do. The questions are already written down somewhere:

  • Support tickets. Sort a month of them by topic. The top 10 topics are your first 10 task pages.
  • Docs search. Look at what people search for, and especially at searches that return nothing.
  • Sales and onboarding calls. The questions people ask before they sign up are the ones your docs should answer first.
  • Your own chat history. Every time someone on the team explains a process to a colleague in a thread, that's a page that doesn't exist yet.

Write each task as a verb phrase, the way the reader would say it: "Connect a custom domain", "Rotate an API key", "Invite a teammate". If you can't phrase a page title as something the reader does, it's probably reference material, not a task.

Rewrite one page

Here's the Domain field from the settings page, rewritten as a task:

Use your own domain

Serve your docs from an address like docs.example.com instead of the default one.

  1. In your DNS provider, add a CNAME record for docs pointing to the address shown in Settings → Domain.
  2. Paste docs.example.com into Settings → Domain and save.
  3. Wait for the check to turn green. It usually takes a few minutes, and up to a day if your DNS is slow to update.

Your old address keeps working and redirects to the new one.

The field is still there, in step two. It's mentioned at the moment the reader needs it, inside the steps that make it useful, and the page ends by answering the next worry ("will my old links break?") before the reader asks it.

A task page has a shape

Once you write a few, a pattern appears:

  1. A title that's the task. "Use your own domain", not "Domains".
  2. One sentence on the outcome, so the reader knows they're in the right place.
  3. What you need first. Access, a plan, a file, a DNS login. Put it before step one, not inside step four.
  4. Numbered steps, each one action, each ending in something the reader can see.
  5. What happens next, or what to do when it goes wrong.

That's it. Most task pages fit on one screen.

Reference still matters

None of this means deleting your reference. When someone needs to know every option a config file accepts, or every field an API returns, a complete, boring, alphabetical list is exactly right. The Diátaxis framework, which a lot of docs teams use, calls these out as different kinds of pages for good reason.

The mistake is mixing them, or offering only reference. Keep the field-by-field pages for lookup. Link to them from the task pages. Put the tasks first in your navigation, because that's where readers start.

Task pages age better

Screens change. A redesign moves the Domain field into a new tab and every screen-by-screen page is suddenly wrong, along with every screenshot on it. The task, "use your own domain", survives the redesign. You update a step or two, and the page still answers the question it was written for.

So the next time you sit down to document a new screen, ask a different question first: what will people come here to do? Write that page. Mention the screen on the way.

Writing docs4 min read

Code samples that work when pasted

Readers skip your prose and copy your code. Eight rules for samples that run the first time, and a way to stop them breaking between releases.

Sahil Gadimbayli

Writing docs4 min read

Every docs page is somebody's first page

Readers land in the middle of your docs from search, assistants and support links. Six habits that make any page work as the first one they see.

Sahil Gadimbayli