You'll see the following folders and files:
.
βββ public/
βββ src/
β βββ assets/ - Images and other media
β βββ content/ - The actual docs
β β βββ docs/
β β β βββ dev/ - Placeholder for generation
β β β βββ rc/ - Placeholder for generation
β β β βββ de/ - German Language; Latest
β β β β βββ dev/ - German Language; Dev
β β β β βββ rc/ - German Language; RC
β β β βββ en/ - English Language (default); Latest
β β β β βββ dev/ - English Language; Dev
β β β β βββ rc/ - English Language; RC
β β βββ versions/ - Defining versions
Starlight looks for .md or .mdx files in the src/content/docs/ directory. Each file is exposed as a route based on its file name.
Images can be added to src/assets/ and embedded in Markdown with a relative link.
Static assets, like favicons, can be placed in the public/ directory.
All commands are run from the root of the project, from a terminal:
Disclaimer It is recommended to use bun. pnpm has problems resolving the library sharp.
| Command | Action |
|---|---|
bun install |
Installs dependencies |
bun run dev |
Starts local dev server at localhost:4321 |
bun run build |
Build your production site to ./dist/ |
bun run preview |
Preview your build locally, before deploying |
bun run astro ... |
Run CLI commands like astro add, astro check |
bun run astro -- --help |
Get help using the Astro CLI |
Check out Starlightβs docs, read the Astro documentation, or jump into the Astro Discord server.