Documentation practice

Last modified: 2026-10-26 23:41by Erik Hagen ID: b8bf5c67-7a5f-4de5-a3f4-232e7e60e725 ◔Early draft SAMT-X/solution-samt-bu-docs

We develop best practice for documentation through good examples – not by locking ourselves into a rigid template from the start. This page collects experiences and patterns as they emerge.

Documentation follows the change

Standing rule from 2026-10-25: Every change in functionality is checked against the documentation, whether it resolves an issue or not. This also applies to changes in the theme, the build (CI), scripts, task management and the setup of the GitHub organization.

Check and update in the same working session as the change:

WhatWhere
Solution documentation – how it worksThe technical documentation for the solution, for example this section or Task management
User guide – what the user sees and doesUser guide
Anything else affectedRoadmap, README, instructions for Claude (CLAUDE.md)

Pages on the site are updated in Norwegian and English.

Continuously, not saved up. The documentation is written when the change is in use, not after every intermediate step, and not saved for the end of the working session. A change is live at once, and the details are easiest to get right while they are fresh. While a design is still being discussed, the documentation waits.

When something is renamed (a type, a field, a page, a repository …), search for the old name in the content of all content repositories, not only where it is known to appear.

The check is written down. When an issue is closed, the closing comment has a line that starts with «Documentation:» (or «Dokumentasjon:»). It links to what was updated, or says why nothing had to change. Without that line the issue is not done.

Approach

The structure of a documentation page should reflect the type of content. For decision documentation (such as roadmap items) we have drawn inspiration from the ADR format (Architecture Decision Records), adapted to our needs.

First example of this pattern: Add sub-chapter – option in the Edit menu.

Emerging pattern: decision documentation

Used for roadmap items and other choices where it is useful to document why, not just what.

SectionContent
BackgroundThe need to be addressed – short and concrete
Chosen solutionWhat we have decided, including remaining work
Alternatives consideredOther solutions that were evaluated, without assessment
RationaleWhy the chosen solution was preferred over the alternatives

This is not a binding template – it is a starting point. Adjust the structure where the content requires it, and update this page as the pattern evolves.