Page patterns
Documentation patterns

Make every page useful.

A small set of consistent patterns for guides, examples, and API reference pages.

Start with the outcome

Give each page one clear job. Begin with a short description of what the reader will accomplish, then show any requirements before the first instruction.

  1. Explain the task

    Use a specific page title and a short introduction.

  2. Show the requirements

    Name the supported environment, access requirements, and any dependencies verified in the SDK source.

  3. Walk through the steps

    Place working examples directly below the instruction they support.

  4. Confirm the result

    Explain the expected result, how to recognise a failure, and where to go next.

Code that is easy to use

Every example has a language or filename label, readable contrast, and a copy action. Long lines scroll inside the block without widening the page.

CSS
:root {
  --brand-navy: #143e63;
  --brand-blue: #3b82f6;
  --brand-gold: #f0aa29;
  --font: 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 24px;
}

This is a real stylesheet example from this site. SDK examples will come from the existing SDK documentation.

Helpful context, close to the task

Note

Use a note for context that helps the reader understand a step.

Before you continue

Use a warning for a specific condition that needs attention before an action.

Result

Describe an expected result. A positive callout should not imply a live action succeeded unless it did.

Reference details at a glance

For each documented method, keep the exact signature near the explanation. Show the parameters, return value, errors, and a verified usage example in a predictable order.

PartInclude
SignatureThe exact identifier and supported arguments from the SDK.
ParametersName, type, required or optional status, and constraints.
Return valueThe documented shape and meaning of the result.
ErrorsFailure conditions and supported recovery actions.
ExampleA source-verified example with placeholder credentials clearly identified.

Keep your place

The left sidebar shows the current page, while the right-hand index links to sections within it. Previous and next links make longer guides easy to follow.

Search opens with the header button or ⌘ K / Ctrl K. Keyboard users can move through results with the arrow keys, open a result with Enter, or close search with Escape.

On mobile, the topic list opens from the menu button. All pages keep the same address and can be linked directly to a section.

Keep technical claims traceable

Use the existing SDK documentation as the source for package names, installation instructions, supported platforms, method signatures, and examples. Preserve important caveats when reorganising the material.

Separate any proposed guidance from documented SDK behaviour.