Introduction
A Svelte 5 + shadcn-svelte template for building documentation sites.
svdocs is a template for building documentation sites with Svelte 5 and shadcn-svelte.
Content lives right here, as Markdown compiled by svmd, a
Svelte-aware Markdown compiler, not a generic renderer. That means Svelte components, {expressions} and control blocks like {#if} work directly inside a page, not just around it.
What's included
- A sidebar, breadcrumbs and previous/next links, all generated from each page's frontmatter.
- Search over every page (
Ctrl K,⌘Kor/) that links to the exact section. - A table of contents for each page.
- Code highlighting with Shiki, in light and dark.
- "Copy page" and "View as Markdown" on every page.
Why
The goal is to eventually cover the same ground as Starlight, but for the Svelte ecosystem. For now, that means a simple, iterable UI built on shadcn-svelte.
Adding a page
Drop a new .md file under src/content/docs/, with frontmatter for title, description and group. Add updated, a date like 2026-09-25, to show when the page last changed. The sidebar
and search pick the page up automatically, with nothing else to register.