---
title: Write documentation
description: Author plain Markdown with verified commands, explicit ownership, and required validation.
owner: engineering
sourceFiles:
  - blume.config.ts
  - theme.css
  - apps/web/src/styles/globals.css
  - scripts/docs-policy.ts
  - scripts/check-docs.ts
  - .markdownlint-cli2.jsonc
  - .github/workflows/ci.yml
  - package.json
  - evals.yaml
  - infra/docs.ts
---

## Source and ownership

Write plain `.md` under `docs/`. Engineering owns the handbook; update affected pages in the same PR as behavior changes. Edit source files, not generated `.blume/` or `dist/` output.

| Folder          | Content                                           |
| --------------- | ------------------------------------------------- |
| `get-started/`  | Prerequisites and onboarding                      |
| `development/`  | Coding and contribution workflows                 |
| `architecture/` | System explanations and decisions                 |
| `operations/`   | Credentials, procedures, and troubleshooting      |
| `reference/`    | Complete commands, configuration, and API details |

Keep bootstrap links in README and machine instructions in `AGENTS.md`/`CLAUDE.md`. Migrate legacy guides deliberately; avoid parallel copies.

## Required page format

```yaml
---
title: Task-oriented title
description: What the reader can accomplish.
owner: engineering
sourceFiles:
  - apps/cli/src/options.ts
---
```

Title/description must be nonempty; `sourceFiles` must name existing repository files. Reviewers still verify factual accuracy. Blume renders the title, so start body headings at `##`.

Use kebab-case filenames, relative `.md` links, real anchors, and language-labelled code fences. MDX and inline HTML are rejected.

## Content rules

- Put the command or answer first, then prerequisites, side effects, and necessary constraints.
- Give each fact one home. Link to the [CLI reference](/reference/cli) for flags instead of repeating them.
- Aim for a short task guide; split unrelated tasks, not paragraphs. Keep rare internals in reference or troubleshooting sections.
- Use tables for comparisons and steps for procedures. Remove repeated cautions, implementation narration, and claims about what a feature does not do unless readers could act incorrectly.
- Verify examples against code. Use placeholders, never credentials. Label historical observations as dated evidence.

## Add a page

1. Add the file and metadata to the appropriate folder.
2. Order it in that folder's `meta.ts` and link it from a related guide. Tabs can open the first real page; do not add empty landing pages.
3. When moving pages, update links and add permanent redirects in `blume.config.ts`.
4. Verify the page and its commands without executing mutation examples.

## Preview and verify

From the repository root after installing dependencies:

```sh
bun run docs:check
bun run docs:build
bun run docs:preview
```

Open `http://127.0.0.1:3001`. Use `docs:dev` for live editing. Stop the server before building because Blume shares its generated runtime.

`docs:check` enforces metadata, Markdown structure, internal links, and anchors. It runs in pre-commit and CI; CI also builds the docs strictly. Review external links manually.

Run `bun run docs:eval` after substantive edits. Blume's reader answers `evals.yaml` questions using only the docs; a judge checks the expected facts. Evals protect answerability, not brevity. Evals require a signed-in Codex CLI and consume model usage; run them manually, outside CI.

## Theme ownership

Configure fonts and colors in `blume.config.ts`; use root `theme.css` for token overrides. Match `apps/web/src/styles/globals.css`, keeping secondary text readable. Check light/dark reading, navigation, search, and code; preserve the system default and reader toggle.

## Access and hosting

The local preview is loopback-only. Production Alchemy reconciliation builds Blume and uploads `dist/` through the `Docs` static-assets Worker in `infra/docs.ts`. Personal stages and application PR previews omit it.

The handbook is temporarily public at [docs.workbench.wurthy.co](https://docs.workbench.wurthy.co). Alchemy owns the existing Docs Worker's custom domain, DNS and TLS. Blume uses this hostname for canonical page URLs and agent exports. The [previous stable workers.dev URL](https://workbench-docs-prod-nlnevocz4mvhbe2m.wurthy-workbench.workers.dev) remains available; version preview URLs remain disabled. The handbook uses no application database.

HTML, Markdown, search, and agent exports are all publicly accessible. Keep credentials and private data out of published pages. Teammate access protection remains a follow-up before publishing restricted content.
