Skip to content
How-to GuideUnreviewed

Author documentation in Nimbus

Use this guide to preview documentation locally, create or edit pages under docs/, and pass automated checks before committing. For prose rules, formatting, and page structure, see Writing style.

Prerequisites

Install these tools once on your machine:

  • Node.js 22.23.4 or later and Bun
  • Vale (on macOS, run brew install vale)

After cloning the repository, install site dependencies and download the Vale style rules:

cd infra/docs-site
bun install
vale sync

Preview and edit pages

  1. Start the local preview server from infra/docs-site/:
bun run dev
  1. Create or edit .mdx files under docs/. You can use standard Markdown, math ($...$ and $$...$$), and Nimbus global components (Card, CardGrid, Aside, Steps, Tabs, PackageManagers) without importing them.

  2. Check your changes in the running browser preview as you edit.

Set page frontmatter

Every .mdx file under docs/ starts with YAML frontmatter. Do not add a description field because the site schema rejects it.

---
title: Short sentence-case title
docType: how-to
status: draft
sidebar:
  order: 1
  label: Short sidebar label
---

The table below lists the frontmatter fields supported on WavWonder pages.

Field Required Purpose
title Yes Renders as the page <h1> in sentence case without a duplicate body heading.
docType Yes Sets the content type to tutorial, how-to, reference, explanation, or plan.
status No Displays a visible Draft, Planned, or Deprecated badge without hiding the page.
reviewed No Defaults to false (Unreviewed badge), and only human reviewers set reviewed: true.
audience No Set to human on pages intended primarily for human orientation.
draft No Set to true only to exclude an incomplete file from production builds and search.
sidebar No Sets order, label, hidden, hideChildren, or group (label, icon) for navigation.
banner No Adds a top-of-page callout with content and type (note, tip, caution, or danger).

Use root-relative routes for pages inside docs/, such as /engineering/specs/phonemes/. Nimbus validates every internal route during linting.

For source files outside docs/, link to the repository’s blob or tree URL on GitHub (https://github.com/wavwonder/fia-engine/blob/main/...).

Review documentation in Nimbus

Select the Review mode icon in the site header to enter or leave review mode. On desktop, select text and release the mouse button to open annotation actions next to the pointer. On touchscreens, adjust the system selection handles, then select Annotate selection to open the editor. Use Comments to reopen a closed panel. The panel stays open or closed as you move between documentation pages. The browser keeps the queue when you leave review mode.

Select Copy feedback to share the full queue as Markdown. The Export menu offers Markdown and JSON downloads and a prefilled GitHub issue for the current page. Open the issue form to review the draft before submitting it.

The current page shows its review status and an action to change it. In local preview, Mark reviewed and Mark unreviewed update the source file directly. If the source has changed, reload before changing the status. On the published site, Copy reviewed change or Copy unreviewed change copies a patch for the source. Compare the included source revision before applying it. Source file opens the file in GitHub.

On phones, entering review mode keeps the article visible. Select text, adjust the system selection handles, and select Annotate selection to write feedback. The editor shows the selected passage, comment type, text field, and save action. The keyboard reduces the editor’s available height, and its contents scroll within that space.

Verify your changes

Run the documentation lint suite from infra/docs-site/ before committing:

bun run lint:docs

This command checks frontmatter, MDX syntax and links, and prose style rules in one pass. When you add pages or modify routes, navigation, or MDX components, run bun run build before bun run lint:docs and finish with bunx @cloudflare/nimbus-docs check so route validation uses the updated build output.

If you also modified Astro or site configuration files under infra/docs-site/, run the full site verification:

bun run lint
bun run typecheck
bun run build
bunx @cloudflare/nimbus-docs check

Maintain Vale rules and vocabulary

When you introduce a new proper noun or acronym that fails sentence-case heading checks, add it to infra/docs-site/styles/config/vocabularies/WavWonder/accept.txt. Company-specific prose rules live as YAML files under infra/docs-site/styles/WavWonder/. Wrap intentional anti-pattern examples in {/* vale off */} and {/* vale on */} comments so Vale skips them.

Type to search…

↑↓ navigate↵ selectEsc close