Documentation Style Guide
This guide defines the writing and structure standards for Res-IRF4 documentation.
Scope
Apply this guide to all files in docs/source/.
Audience-first writing
State who the page is for in the first paragraph.
Put the expected outcome near the top.
Use imperative voice for procedural steps.
Keep domain assumptions explicit (for example, baseline year, policy scope, scenario family).
Page template
Use this order for most pages:
one-line purpose statement
prerequisites (if any)
procedure or conceptual content
expected outputs or checks
troubleshooting and related links
Headings and naming
Use short, descriptive headings.
Prefer sentence case for section names.
Keep filenames lowercase with underscores.
Avoid ambiguous titles like
notes.mdormisc.md.
Commands and paths
Wrap commands in fenced
bashblocks.Keep commands copy-paste ready.
Use workspace-relative paths (for example
project/config/config.json).When documenting flags, include defaults when known.
Tables, figures, and references
Add a short caption or context sentence before each figure/table.
Prefer links to canonical pages instead of duplicating long explanations.
Keep bibliographic references in
articles.bibwhere applicable.
Legacy handling
v4 content is primary.
v3.0/2012 material must remain in the Legacy Archive and be clearly labeled as legacy.
Do not place new v4 guidance inside legacy pages.