Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Write and maintain documentation

Use Diátaxis throughout this book. Choose one reader need for each page before writing it:

FormReader needWhat belongs on the page
TutorialLearn through a successful first experienceA guided task, prerequisites, concrete steps, visible checkpoints
How-to guideComplete a task the reader already wants to doGoal-focused steps, relevant choices, verification
ReferenceLook up a fact or contractAccurate options, defaults, types, formats, limits, source ownership
ExplanationUnderstand a mechanism or decisionContext, relationships, reasoning, tradeoffs

Update a page

  1. State its reader and purpose. For a first-time clinician, explain where to enter a command and what success looks like. Keep architecture and tuning details in linked explanations.
  2. Check every command against its current entrypoint, every default against implementation, and every source path against the checkout. Distinguish model availability from measured quality. Do not infer current behavior from an old design proposal or a comment copied from a previous runtime.
  3. Keep one canonical treatment of a topic. Link to it from other forms instead of repeating tables or architectures. Split a mixed page when its tutorial, reference, and explanation serve different needs.
  4. Use SUMMARY.md to place it in the appropriate Diátaxis section. File paths may remain stable for existing links; the directory name does not determine the documentation form.
  5. When retiring obsolete instructions, keep a short pointer at an established URL if it is linked elsewhere. Link historical studies to a fixed repository revision and identify their date/version scope. Do not label them current.
  6. Run just docs build and inspect the rendered page. It includes the configured link checker. Verify changed command examples through just batchalign cli when they describe Batchalign integration behavior.

Keep tutorials focused on completing their exercise; keep how-to guides free of architecture tours; keep reference factual; keep explanations separate from copy-and-paste operational instructions. A landing page routes readers by need instead of repeating the repository README.

The Batchalign documentation audit records the architecture cleanup and replacement pages.