On this page

Add a page that fits the site structure and passes the build.

Prerequisites

Choose the page type

The site follows Diátaxis: each page has exactly one type, and its section sets the type.

Sectionextra.typeContains
start/tutorialOne linear path with checkpoints; no options
how-to/how-toOne task: prerequisites, steps, verify, undo
concepts/explanationDesign and tradeoffs; no procedures
reference/referenceTables and values; no procedures or rationale
contributing/how-to or referenceDeveloper tasks; may require mise
contributing/decisions/explanationArchitecture decision records

Pages outside contributing/ state user requirements only: Git and a POSIX sh, with mise optional.

Add the page

  1. Create a regular page under .config/dotfiles/docs/content/docs/<section>/, never an _index.md.

  2. Add front matter:

    +++
    title = "Choose plugin groups"
    description = "One sentence that states the outcome."
    weight = 20
    
    [extra]
    type = "how-to"
    +++
  3. Link other pages by source path, for example @/docs/how-to/update.md#verify. docs:check fails on a missing page or anchor; docs:build checks pages only.

  4. Link a tracked repository file or directory with the source component; end a directory with /:

    {{<source path=".config/helix/" />}}

    Link to complete configuration files; do not paste them into pages. Quote a setting only beside the text that explains it. Add a page for a tool only when it has behavior to explain; otherwise its row in File layout is enough.

Do not add updated; the build stamps each page with the author date of its last commit, or today for uncommitted edits.

Record a decision

Write an architecture decision record (ADR) when a choice constrains future contributors and reversing it costs more than one pull request.

InformationWhere
Why the system is built this wayADR in contributing/decisions/
How a feature works and its tradeoffs for usersConcepts page on that topic
What changed and how to migrateChangelog
  1. Take the next free number from Decisions.

  2. Create contributing/decisions/NNNN-short-name.md from the template:

    +++
    title = "ADR-NNNN: Short noun phrase"
    description = "One sentence that states the decision."
    weight = N
    
    [extra]
    type = "explanation"
    +++
    
    **Status:** Accepted, YYYY-MM-DD.
    
    ## Context
    
    Forces and constraints that require a choice; facts, not arguments.
    
    ## Decision
    
    The choice, in imperative sentences.
    
    ## Consequences
    
    - What becomes easier, harder, or required of contributors.
    - When to revisit the decision.
    
    ## Details
    
    - Link to the concepts or contributing page that explains the topic.
  3. Add a row to the status table in contributing/decisions/_index.md.

  4. Optionally end the related concepts page with Decisions: and a link to the record. The concepts page never repeats the record's rationale; the record never repeats the page's detail.

Fix typos and links in place. To change an accepted decision, supersede it instead of editing it:

  1. Add a new record whose status line reads Accepted, YYYY-MM-DD. Supersedes ADR-NNNN.
  2. In the old record, change only the status line to Superseded by ADR-NNNN, YYYY-MM-DD., linking the new record.
  3. Update both rows in the status table.

Verify

From a configured development clone:

prek run --config .config/dotfiles/prek.toml --all-files vale
mise run docs:check -- --skip-external-links
mise run docs:build
TaskPurposePage datesLink checks
Vale hookCheck prose against the Vale house styleNoneNone
docs:checkValidate page types, links, and anchorsNoneInternal and external by default
docs:buildBuild the publishable siteGit-derived author datesZola build checks page targets, not anchors
docs:servePreview with live reloadNoneNone

Use --skip-external-links with docs:check for a fast offline-friendly check; omit it to check external links too. The Vale hook runs on staged documentation before each commit; --all-files checks every tracked Markdown file except agent prompts. Add terms that Vale reports as misspelled to .config/vale/styles/config/vocabularies/General/accept.txt if they apply across projects, or to .config/vale/styles/config/vocabularies/House/accept.txt if they are specific to this repository.

docs:check and docs:build fail when a page lacks extra.type or its type does not match its section. In a clone, they also fail when a source link points at an untracked path, or when a tracked entry under .config/ has no row in File layout. docs:build stamps a temporary copy; it does not change the source files.

Adjust prose rules

Vale reads both files. The repository vocabulary adds terms to the user-level vocabulary.

FileScopeContents
.config/vale/.vale.iniEvery project: deploys to ~/.config/vale/.vale.iniPackages, styles, general vocabulary, prose and commit rules
.config/dotfiles/.vale.iniThis repository: the hooks pass it with --configRepository vocabulary, Zola markup ignores, talk-specific rules

The hooks set XDG_CONFIG_HOME to the checkout's .config/, so a clone and CI read the tracked user-level file instead of the installed copy.

The custom styles live in .config/vale/styles/:

StyleRuns onChecks
HouseDocumentation and commit messagesLatin abbreviations, wordy phrases, weasel words, there is openings, repeated words
GeneratedDocumentation and commit messagesStock phrases, hype vocabulary, sentence-opening connectives, not just X, but Y, em dashes, emoji
TechnicalDocumentationProduct name casing; acronyms without a definition

To relax a rule for one kind of document, add a section to .config/dotfiles/.vale.ini that sets the rule and omits BasedOnStyles; a section that names styles runs those styles alone. Talk notes use this for first-person voice.