Skip to content

Writing documentation

Starlight supports plain Markdown pages and MDX pages with built-in components. Keep content static and do not embed private credentials or runtime application dependencies.

Markdown

Prefer Markdown for normal text, code samples, admonitions and internal navigation.

MDX

Use MDX sparingly when a documented built-in component materially improves clarity.

Edit content in src/content/docs/ on dev, run npm run build, npm run test:docs and npm run test:links. Never bypass security CI or automatically promote to main.