Skip to content

Getting Started

Starlight is a full-featured documentation theme built on top of the Astro framework. This guide will help you get started with a new project.

Create a new Astro + Starlight project by running the following command in your terminal:

Terminal window
npm create astro@latest -- --template starlight

Inside your project directory, run the following command to start the development server:

Terminal window
npm run dev

Add new pages to your site by creating Markdown files in the src/content/docs/ directory.

  • Configure your site in astro.config.mjs.
  • Extend your content schema in src/content.config.ts.
  • Add documentation pages under guides/ and reference/.
  • Add blog posts under blog/.