Skip to content

Contributing

The docs and the website live in the repository, in site/, and anyone can fix them. For code, see CONTRIBUTING.md and docs/architecture.md in the repository.

Every docs page has an Edit this page link at the bottom. It opens the file on GitHub; propose the change there and GitHub makes the pull request for you. Typos and wording fixes need nothing else.

Terminal window
cd site
pnpm install
pnpm dev # http://localhost:5180 (landing) and /docs/
pnpm typecheck
pnpm build # site/dist, including the Pagefind search index

Node 22 and pnpm are needed (the versions come from site/.node-version and packageManager in site/package.json). Search only works after pnpm build and pnpm preview, because the index is built at the end of the build.

Path What
site/src/content/docs/docs/ All docs pages (Markdown or MDX). The path is the URL: features/now.mdx is /docs/features/now/.
site/astro.config.mjs The sidebar (explicit order), site title, edit link, search.
site/src/components/docs/ UiPath, Shot, SafetyNote, and the title bar.
site/src/styles/docs.css Docs theme (Starlight variables).
site/src/pages/index.astro, site/src/sections/ The landing page.
site/public/ Static files: shots/ (app captures), favicon.svg.

A new page needs a file and a line in the sidebar in astro.config.mjs.

Pages that use components are .mdx. Import them at the top; from a feature page the path is ../../../components/docs/.

  • <UiPath path={["Usage", "Limits"]} /> shows where something is in the app, as key-caps: UsageLimits.
  • <Shot src="/shots/docs/now-light.webp" srcDark="/shots/docs/now-dark.webp" alt="..." caption="..." /> shows a screenshot, the light or dark capture to match the docs theme (a placeholder when src is missing). Captures come from the app’s fixture data, never a real machine: start pnpm dev in app/, add the shot to DOCS in site/scripts/shots.mjs (its steps click and scroll by visible text, see shot-steps.js), then run pnpm shots docs <name> in site/.
  • <SafetyNote> is a short aside that links to Safety and privacy.
  • Feature pages show each task in <Tabs syncKey="interface"> with the tabs App, CLI, and MCP, always in that order and with those exact labels, so a reader’s choice carries from page to page.
The Now tab with live sessions and the ports they holdThe Now tab with live sessions and the ports they hold
A capture from the fixture data.

Copy an existing feature page as a starting point; they all follow the same shape.

  • Plain, short sentences. Say what happens, then what to do.
  • Name things as the app does: Now, Usage, Reclaim, History, Config, Hygiene.
  • Show commands that work as written, and trimmed real output, never invented output.
  • Link to Safety and privacy instead of repeating guarantees.
  • Never paste a real transcript, token, or key into an example.
  • No emoji, no marketing language.

A pull request that touches site/** or docs/** runs .github/workflows/site-check.yml: install with a frozen lockfile, typecheck, build, and an offline check of internal links with lychee. A broken link fails the run. Run pnpm build locally first and the check should pass.