Skip to content

Deploy On Netlify

This documentation site is a separate module rooted at docs/.

Terminal window
cd docs
npm install
npm run dev

Build locally:

Terminal window
cd docs
npm run build
npm run preview

Create a Netlify site from the repository and set docs as the base directory.

Recommended settings:

SettingValue
Base directorydocs
Package directorydocs
Build commandnpm run build
Publish directorydocs/dist
Node version20

The module includes docs/netlify.toml with the build command, publish directory, Node version, and static-site security headers. If Netlify uses docs as the base directory, the publish = "dist" value in that file resolves to docs/dist.

The docs module sets Astro’s site option from environment variables:

Terminal window
DOCS_SITE_URL=https://docs.example.com npm run build

On Netlify, set DOCS_SITE_URL to the canonical docs domain after the production site is assigned. If that variable is not set, the config falls back to Netlify’s URL build environment variable and then to https://jumpspace.netlify.app for local builds.

This keeps sitemap and canonical URL generation enabled during local verification while still letting the hosted production URL be controlled by Netlify settings.

This repo keeps source task specs under docs/specs/ and the website under docs/src/content/docs/. The root .jumpspace/config.json scans docs/specs/**/*.md so tutorial examples in the docs site do not become live task blocks.

If you use a different layout, set the docs glob intentionally:

{
"docs": ["docs/specs/**/*.md"]
}
Terminal window
npm run build
npx jumpspace scan
npx jumpspace audit --json

For this repo, run the docs build from the docs module:

Terminal window
npm --prefix docs run build