First Example
Let’s walk through adding a new page — “Deploy to Fly.io” — and watch it propagate to the sidebar, llms.txt, and the MCP resource list.
1. Create a Markdown file
Section titled “1. Create a Markdown file”---title: Deploy to Fly.iodescription: Host Read.Wiki in SSR mode on Fly.iotags: [deploy, fly.io]difficulty: intermediate---
## Prerequisites
...body...Frontmatter fields are validated by src/content.config.ts:
title/description: requiredtags: string arraydifficulty:beginner/intermediate/advancedapiType:function/class/method/property/interfaceversion: string
2. Preview locally
Section titled “2. Preview locally”pnpm devOpen http://localhost:4321/en/tutorials/deploy-to-fly/. Starlight auto-generates the sidebar for the tutorials directory and Pagefind indexes the page.
3. Verify AI access
Section titled “3. Verify AI access”Once a file enters the docs content collection, all three AI paths pick it up automatically:
# appears in the page listingcurl http://localhost:4321/llms.txt | grep 'deploy-to-fly'
# full text is fetchablecurl http://localhost:4321/llms-full.txt | grep -A5 'Deploy to Fly.io'
# MCP search tool hits itcurl -X POST http://localhost:4321/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_docs","arguments":{"query":"fly"}}}'4. Add the Chinese counterpart
Section titled “4. Add the Chinese counterpart”Create a parallel file at src/content/docs/zh/tutorials/deploy-to-fly.md. If the translation isn’t ready, the language switcher will fall back gracefully.