This directory contains the Astro + Starlight site for the Nebari Rayserve Pack.
- Node.js
>= 22(enforced by theenginesfield inpackage.json) - npm (bundled with Node.js)
cd docs
npm cinpm run devStarts the Astro dev server with hot reload on http://localhost:4321/.
npm run buildEmits static files to docs/dist/.
npm run previewServes the contents of docs/dist/ locally so you can verify the production output.
npm testRuns the Vitest suite (currently: the remark-base-links plugin tests).
bash ../scripts/check-links.shTo test with the production base path: BASE=/rayserve-pack/ bash ../scripts/check-links.sh
Pages live in src/content/docs/. Each .md or .mdx file becomes a page. The sidebar is configured in astro.config.mjs under starlight.sidebar.
The Docs workflow runs unit tests, builds the site, checks internal links, and deploys to Cloudflare Pages on every push to main and every pull request that touches docs/. Pull requests get a preview URL posted as a comment; the Docs preview cleanup workflow removes it when the PR closes.