Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Build beautiful, accessible, high-performance documentation websites with Astro and Starlight.
Starlight Starter Kit: Basics is an official Astro starter template for building documentation websites with the Starlight documentation framework, turning Markdown/MDX files into a static, accessible site.
The Starlight Starter Kit: Basics is a minimal starting point for a documentation website built on Astro and Starlight. It takes Markdown or MDX files placed in src/content/docs/ and generates a static site where each file becomes a route based on its filename. The template is maintained as part of the withastro/starlight repository and is the basis for Starlight's official examples.
.md or .mdx file added to src/content/docs/ is automatically exposed as a route whose URL matches the file name, so documentation pages are organized by folder structure.src/assets/ can be embedded in Markdown via relative links, keeping media colocated with content.public/, where they are copied verbatim to the built site.npm run dev to start a dev server at localhost:4321 with hot reload for instant preview.npm run build outputs a fully static site to ./dist/, ready for hosting anywhere.npm run astro ..., enabling commands like astro add and astro check to extend the project.withastro/starlight.src/content/docs/ and preview changes live on localhost:4321.src/content/docs/ to create structured routes.npm run astro add) or customize the Starlight theme.This template is a standard Astro project preconfigured for Starlight. Content lives in src/content/docs/; when you run npm run build, Astro processes the Markdown/MDX files and outputs a static site to ./dist/. The astro.config.mjs file contains Starlight integration settings, and src/content.config.ts defines the content collection schema.
Starlight is a documentation framework built on Astro. It provides the theme and routing conventions that turn Markdown/MDX content into a docs website, and this starter kit comes with Starlight preinstalled.
Create a new .md or .mdx file under src/content/docs/. Starlight automatically exposes it as a route based on the file name, so src/content/docs/guide.md becomes /guide.
Yes. The template includes one-click deploy buttons that connect to Netlify and Vercel. You can also run npm run build to produce static files in ./dist/ and host them on any static hosting service.
The template is part of the open-source withastro/starlight repository, so it is available under an open-source license and free to use.
