Writing documentation
This page demonstrates the components available for writing readable, visually distinct documentation.
Standard Markdown still works
Section titled “Standard Markdown still works”Plain .md files support tables, images, links, code blocks, lists, and Starlight asides. You only need .mdx when embedding custom components.
Where the files go
Section titled “Where the files go”src/content/docs/ Markdown and MDX pagessrc/components/ Reusable interactive Astro componentssrc/assets/ Images referenced by documentationpublic/ Favicons, background images, downloadssrc/styles/custom.css Global visual themeCode examples
Section titled “Code examples”Always set the language and add a short label. Starlight will show a header above the code so readers know what they are looking at.
For example, a C# code fence can use csharp title="C# | Example.cs", while a shell command can use bash title="Bash | Terminal".
Writing a new page
Section titled “Writing a new page”Create src/content/docs/example.md with frontmatter:
---title: Example pagedescription: What this page teaches.---
## The main idea
Explain one concept clearly, then demonstrate it.Commit and merge to main. GitLab builds and deploys the result automatically.