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.
- Explain the task
Use a specific page title and a short introduction.
- Show the requirements
Name the supported environment, access requirements, and any dependencies verified in the SDK source.
- Walk through the steps
Place working examples directly below the instruction they support.
- 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.
: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
Use a note for context that helps the reader understand a step.
Use a warning for a specific condition that needs attention before an action.
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.
| Part | Include |
|---|---|
| Signature | The exact identifier and supported arguments from the SDK. |
| Parameters | Name, type, required or optional status, and constraints. |
| Return value | The documented shape and meaning of the result. |
| Errors | Failure conditions and supported recovery actions. |
| Example | A 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.