# Vitest Docs Guide Guidance for working on the VitePress site in `docs/`. The root `AGENTS.md` applies here too. ## Building - Local dev server: `pnpm docs` (from the repo root) - Build with `pnpm docs:build` from the repo root; it sets the required env vars and regenerates the CLI table first - The build type-checks code samples against the built workspace packages, so run `pnpm build` at the repo root first ## What fails the build - Code blocks tagged `ts twoslash` are type-checked during `pnpm docs:build` only; the dev server skips twoslash and will not catch broken samples. A sample that intentionally fails needs `// @errors: `; use `// ---cut---` and `// @filename:` to hide setup lines. Changing public types in `packages/` can break twoslash samples. - Dead internal links fail the build. Every CLI option gets a generated link to `/config/