Getting Started
The Starlight documentation experience, powered by EmDash CMS. Edit docs visually in the browser — no MDX files, no Git commits, no rebuilds.
Get Started
Install Bun if you don't have it:
curl -fsSL https://bun.sh/install | bashThen create your project:
bun create star-lite-docsThe CLI scaffolds your project and offers three deployment targets: Local, Docker, or Cloudflare Workers (with automatic D1/R2 provisioning and deploy).
Features
- Starlight layout — collapsible sidebar, table of contents, Ctrl+K search, dark/light/auto theme
- 14 block types — hero, tabs, cards, asides, steps, badges, file trees, icons, link buttons, code, images, and raw HTML
- Zero config — one integration, no schema setup. First request seeds the
pagescollection, sidebar menu, and welcome page - Menu-driven sidebar — edit navigation from the admin UI, no rebuild needed
- Expressive Code — syntax highlighting with bundled Night Owl themes
- Copy Page MD — one-click clipboard export of any page as markdown
How It Works
- Content is stored as Portable Text in the
ec_pagestable — the database is the source of truth. - The
/[...slug]catch-all route looks up a published page by slug, preprocesses blocks (images, headings with TOC anchors, tables, and standard text blocks are all converted todocs.html), and renders via emdash'sPortableTextwith Star-Lite's block components. - On first boot, the middleware runs
applySeedto create thepagescollection,docs-sidebarmenu, and a welcome page. This is idempotent — existing data is never overwritten. - The toolbar Save button is injected client-side via a
DOMContentLoadedhandler that watches the emdash toolbar's status area with aMutationObserver. - Block components use
data-sl-editattributes for inline contenteditable editing anddata-block-propsfor the block edit form.
Next steps
- Deploy: See Deploy for Cloudflare Workers, Docker, and Node.js deployment
- Add to existing site: See Add to an Existing Site to install on an existing emdash project
- Authoring: Learn the three editing modes in Authoring Content
- Components: Discover the 14 block types in the Components guide
- Customize: Configure your site in Customization