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.
Edit a page
Section titled “Edit a page”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.
Run the site locally
Section titled “Run the site locally”cd sitepnpm installpnpm dev # http://localhost:5180 (landing) and /docs/pnpm typecheckpnpm build # site/dist, including the Pagefind search indexNode 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.
Where files live
Section titled “Where files live”| 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.
Components
Section titled “Components”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 whensrcis missing). Captures come from the app’s fixture data, never a real machine: startpnpm devinapp/, add the shot toDOCSinsite/scripts/shots.mjs(its steps click and scroll by visible text, seeshot-steps.js), then runpnpm shots docs <name>insite/.<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.


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.
The pull request check
Section titled “The pull request check”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.