Quick Start
JoeDocs discovers every folder inside sites/ that contains a site.manifest.json, builds it in isolation, and mounts it at /<slug>/.
1. Copy the Starlight starter template
Section titled “1. Copy the Starlight starter template”Copy templates/starlight-docs/ into a new directory under sites/ named after your project’s URL slug:
cp -r templates/starlight-docs sites/my-project-docs2. Configure site.manifest.json
Section titled “2. Configure site.manifest.json”Edit sites/my-project-docs/site.manifest.json with your site’s metadata:
{ "title": "My Project Docs", "slug": "my-project-docs", "description": "Guides, API references, and tutorials for My Project.", "outDir": "dist", "buildCommand": "npm run build", "tags": ["docs", "starlight", "markdown"], "framework": "Astro Starlight", "links": [ { "label": "Getting Started", "path": "guides/getting-started/" } ]}3. Update astro.config.mjs
Section titled “3. Update astro.config.mjs”Open sites/my-project-docs/astro.config.mjs and set your title, description, and sidebar items while keeping base: process.env.SITE_BASE || '/' and trailingSlash: 'always' intact:
export default defineConfig({ base: process.env.SITE_BASE || '/', trailingSlash: 'always', integrations: [ starlight({ title: 'My Project Docs', description: 'Guides and references for My Project.', customCss: ['./src/styles/custom.css'], components: { SocialIcons: './src/components/SocialIcons.astro', Footer: './src/components/Footer.astro', }, }), ],});4. Write Markdown or MDX pages
Section titled “4. Write Markdown or MDX pages”Add pages under sites/my-project-docs/src/content/docs/. Use relative paths (such as guides/getting-started/) in hero actions and Markdown links so they resolve cleanly under any SITE_BASE.
5. Build and preview locally
Section titled “5. Build and preview locally”From the repository root:
npm run buildnpm run previewOpen the printed local URL and verify:
/lists your new card in JoeDocs with working search and topic filters./<your-slug>/renders your site with all styles, scripts, and assets loaded.- All docs in the top navigation bar returns to the JoeDocs index.