Documentation deployment
The public documentation is an isolated VitePress application rooted entirely in docs/. Vercel must use that directory as the project root; the Go source tree is never part of the website build context.
Local development
From the repository root:
task docsdeps # frozen install from docs/bun.lock
task docs # http://127.0.0.1:5173
task docsbuild # production build → docs/.vitepress/distYou can also work directly from docs/:
bun install --frozen-lockfile
bun run dev
bun run build
bun run previewVercel project contract
The project configuration lives in docs/vercel.json:
- project root:
docs - install command:
bun install --frozen-lockfile - build command:
bun run build - output directory:
.vitepress/dist - production domain:
cortexai.tools
Link and deploy from the documentation directory so Vercel cannot accidentally infer the repository root as the web application:
vercel link --cwd docs --yes --project cortex --scope the-lacanians
vercel deploy --cwd docs
vercel deploy --cwd docs --prodThe generated .vercel/ directory is local account state and must not be committed. Vercel's Git integration should likewise be configured with docs as its Root Directory.
Brand assets
The favicon, navigation mark, hero diagram, and social card are original SVG assets under docs/public/. They share the Cortex palette and remain local so the site has no third-party image or font requests. Motion is CSS-only and respects prefers-reduced-motion.
Release check
Before publishing documentation:
- Run
task docsbuild. - Start
bun run --cwd docs previewand inspect the home page plus at least one reference page. - Check the browser console and error overlay.
- Deploy a preview and verify its immutable URL.
- Promote or deploy the same commit to production, then confirm
https://cortexai.tools.