Writing pages
Pages are Markdown (.md) or MDX (.mdx) files under
site/src/content/docs/. The path under that directory becomes the URL, and
each page needs at least a title in its frontmatter.
Add a page
Section titled “Add a page”Create site/src/content/docs/guides/my-page.md:
---title: My pagedescription: A short summary used for SEO and social cards.---
Your content here.That page is served at /guides/my-page/ (under the deploy base path).
Wire it into the sidebar
Section titled “Wire it into the sidebar”The sidebar is defined explicitly in site/astro.config.mjs. Add your page to
a group’s items:
{ label: 'Authoring', items: [ { slug: 'guides/writing-pages', label: 'Writing pages' }, { slug: 'guides/my-page', label: 'My page' }, ],},Links and images
Section titled “Links and images”Write internal links and image sources root-relative
(/guides/my-page/, /diagram.png) rather than with the deploy base path.
A small rehype plugin in astro.config.mjs prepends the base path
(/ai-training) at render time. This lets the same Markdown work in
local dev and on GitHub Pages.
See the [contributing page](/contributing/).
The one exception is the landing page’s hero action links and any raw HTML
<a> tags, which are used verbatim and must include the base path.
The landing page
Section titled “The landing page”index.mdx uses Starlight’s splash template to render a hero and card grid
instead of the usual docs layout. It is a separate landing page - not the first
sidebar entry - so the sidebar starts with your actual content.