Skip to content

Quick Start

JoeDocs discovers every folder inside sites/ that contains a site.manifest.json, builds it in isolation, and mounts it at /<slug>/.

Copy templates/starlight-docs/ into a new directory under sites/ named after your project’s URL slug:

Terminal window
cp -r templates/starlight-docs sites/my-project-docs

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/" }
]
}

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',
},
}),
],
});

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.

From the repository root:

Terminal window
npm run build
npm run preview

Open 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.