Built-in Components
Documentation components you can use directly in your markdown files.
Callouts
Use callouts to highlight important information.
Note
Tip
Warning
Danger
You can also customize the title:
Custom Title
Tabs
Use tabs to show alternative content, like different package managers:
Steps
Use steps for sequential instructions:
Create a new project
Clone the template repository and install dependencies.
Configure your site
Edit web/src/data/docs.ts (site title, description, sidebar sections) and web/src/lib/docs/constants/config.ts (assembled docs config such as TOC settings).
Write your content
Add markdown files to src/content/docs/.
Deploy
Build and deploy to your hosting provider.
Cards
Use cards to highlight features or key information:
Link Cards
Use link cards for navigation:
Badges
Use Badge from $lib/ui/components/docs/mdx/index.js for short labels in prose.
Release / status: New Experimental Deprecated v1.0.0
Docs semantics (pick variants so readers can scan by color — see web/src/content/docs/Installation/vercel.md):
- Backend env (no
VITE_prefix): BACKEND_DOMAIN_URL - Web / Vite env: VITE_API_BASE_URL
- CORS / origins: ALLOWED_FRONTEND_ORIGINS
- Runtime / platform: VERCEL
- Env files: backend/.env.development.local
- Repo paths & routes (often nested in ExternalLink to GitHub): backend/vercel.json
- URL examples (prefer / avoid): https://example.com vs https://example.com/
File Tree
Display directory structures:
- src/
- content/
- docs/
- index.md
- getting-started/
- installation.md
- how-to-write-docs/
- configuration.md
- docs/
- lib/
- components/
- docs/
- callout.svelte
- tabs.svelte
- docs/
- docs/
- config.ts
- content.ts
- components/
- content/