Writing Principles
CLICK TO VIEW THIS PAGE RENDERED IN MKDOCS
See also
- For page structure and metadata, see Create a New Page.
- For markdown style, see Formatting.
These principles decide what to write, whether to write it, and how much. Create a New Page and Formatting cover how it should look. They apply to everyone who writes here, people and AI agents alike.
Our readers are researchers with a wide range of HPC experience, usually in the middle of trying to get something done.
Principles¶
- Start from a reader need. If you cannot say who needs the page and what they will do with it, do not write it.
- One page, one job. Every page is a tutorial, a how-to guide, reference or explanation (Diátaxis). Do not mix them: a how-to guide that stops to explain background should link to an explanation instead.
- Every page is page one. Most readers arrive from search, not from the previous page. A page must fully serve its main task on its own. State prerequisites, and use links only for tangents.
- Common case first. Lead with what most readers need. Put edge cases and rare failures in admonitions (collapsed if long) or on linked pages.
- Simple and mostly right, but exact where it counts. Simplify explanations freely. Commands, paths, limits and policy must be exact and work when copied.
- Say it once. Each fact has one home. Elsewhere, give a one-line summary and link to it. A little repetition is fine if it saves the reader a click, but never copy the details.
- Plain words, and fewer of them. Put the most important information first. Use active voice, short sentences, descriptive headings and NZ English. Cut anything that does not help the reader act or understand.
- Write less that lasts. Every page has to be maintained. Link to vendor documentation instead of copying it. Leave out details that go out of date (versions, dates, screenshots of web pages) unless they are generated, for example with macros.
- Be findable.
Write titles and descriptions in the words readers search with, usually the task or the question.
The description also feeds search,
llms.txtand the docs search assistant.
Should This Be Written?¶
- No clear reader need: do not write it.
- An existing page covers it: improve that page.
- Vendor documentation covers it and nothing about it is specific to Mahuika: link to the vendor documentation.
- A one-off answer for one person: answer the ticket. Write it up only if it is likely to come up again.
- Only true for a short time (an outage, a change): write a dated announcement in
docs/Announcements/, not a permanent page.
New Page or Existing Page?¶
- The same purpose as an existing page: add to that page.
- A different type of page (see principle 2), or a separate task readers would search for: make a new page.
- Too long is not a reason on its own. First move detail down the page or into admonitions. Split only when parts serve different tasks or readers.
- A new page needs a place in the nav (
.pages.yml), links from related pages, and tags.
For tutorials, the tutorial page structure follows the Carpentries lesson model.
Further Reading¶
- Diátaxis: the four types of documentation.
- Progressive disclosure (Nielsen Norman Group): showing the common case first.
- Minimalism: a summary of John Carroll's The Nurnberg Funnel.
- Every Page is Page One (Mark Baker): topic-based writing for readers who arrive from search.
- Documentation principles (Write the Docs), including ARID: accept (some) repetition.
- Planning content (GOV.UK): user needs and avoiding duplication.
- Plain language (NZ Digital government).