Skip to content
Coding Shields
ConceptDocsDeveloper

Developer documentation

Reference documentation for a query API, built so the example is runnable and the reference is searchable.

Open the live build

Opens in a new tab. It is a real page, not a picture of one — resize it, tab through it, run it through Lighthouse.

Three-pane documentation page with a section rail, a code block with language tabs, and an on-this-page marker that follows the reader.Open the live build

The brief

Self-directed. The test I set: could a developer answer their own question without opening a support ticket?

Documentation has one job, and it is not to be comprehensive. It is to get a developer from a question to a working line of code before their patience runs out. Most docs sites lose that race in the navigation, before the reader has read a word of the reference.

So the brief was structural rather than editorial: three panes, a search that is reachable from the keyboard, and a code example you can copy without reading around it.

Three panes, each with one job

The left rail is where you are in the product. The centre is the reference. The right is where you are on this page. None of them scrolls the others, and the on-this-page marker follows the heading actually in view rather than the last one you clicked.

It is a conventional layout, deliberately. Documentation is the wrong place to be original — a developer arrives with a mental model built from every other docs site they have used, and meeting it is worth more than any novelty.

The example comes before the parameters

A working request sits directly under the endpoint, in three languages, with the copy button in reach. The parameter table is below it.

That order is the whole argument. Most readers need to make one call, and they will happily copy an example and adjust it. The table is for the second visit, when they need the operator they did not know existed.

Errors documented as prose, not as a list

Each error row says what actually went wrong in the words someone would use at two in the morning — “a non-aggregate column is missing from group” rather than “422 Unprocessable Entity”.

The page also states which field is safe to show to your own users and which is not, because that is the question a developer has the moment they start handling the response.

Decisions

Four choices that shaped the page, each with the reason attached. A decision without a reason is a preference.

  1. 01

    Language tabs follow the APG tabs pattern

    Arrow keys move between Node, Python and cURL; only the selected tab is in the tab order. Custom tabs that trap a keyboard are one of the most common accessibility failures in developer tooling, and the pattern to avoid it has been written down for years.

  2. 02

    Cmd-K focuses search, and nothing else is bound

    One shortcut, the one every developer already tries. A docs site that claims a dozen single-key bindings will eventually swallow a keystroke someone needed for something else.

  3. 03

    The response shape is explained before it is shown

    The prose says to check status before reading rows, and why — an empty result and a promoted job look similar if you test for the wrong key. Then the JSON. Documentation that only shows the shape leaves the reader to infer the rule.

  4. 04

    Monospace for identifiers, everywhere

    Field names, endpoints and codes are set in JetBrains Mono in the table, the prose and the signature alike, so a reader can tell an identifier from a description without reading either.

Page weight
26KB of HTML, no images
JavaScript
One file: tabs, copy, scrollspy
Typefaces
Inter Tight, JetBrains Mono
Palette
#FFFFFF ground, #0A6E80 accent
Contrast
Twenty-one pairs audited, including code
Keyboard
APG tabs, one shortcut, skip link

What this is not

  • It is a concept for an API that does not exist, so nothing in the reference can be verified against a real implementation.
  • The search field focuses and nothing more. Real docs search is the hardest part of a docs site and it is not what this page is arguing about.
  • One endpoint is documented properly. A real reference needs every endpoint held to the same standard, which is a content problem rather than a design one.

Want one of these, for real?

Every page in this section started as a blank file. Yours would start as a conversation about what it actually has to do.

Next in SaaSChangelog and roadmapProve the product is still being built.