Getting Started

Scaffold a lily-pad site, learn the project layout, and write your first page.

Prerequisites

Scaffold a site

pnpm create @levish0/lily-pad my-docs
cd my-docs
pnpm install

This creates a thin SvelteKit shell wired to the lily-pad package — the theme and markdown pipeline come from npm and update with pnpm update.

Project layout

my-docs/
├── lily-pad.config.ts   # site title, nav, GitHub link, sidebar labels
├── content/             # your markdown, one folder per locale
│   ├── en/
│   └── ko/
├── src/                 # thin shell (routes delegate to the lily-pad theme)
└── static/              # images and other public files

You write in content/ and configure in lily-pad.config.ts. The files in src/ are a few small stubs — the actual theme lives in the lily-pad package.

Write your first page

Create a markdown file under a locale root. title and description are required frontmatter:

---
title: Hello
description: My first lily-pad page.
---

## It's alive

Everything in this file becomes a styled page at /docs/hello.

The sidebar picks the page up automatically — see Routing for how paths map to URLs and Frontmatter for every field.

Preview it

pnpm dev

This builds the content index with velite and starts the dev server at localhost:5173.

Build for production

pnpm build

Pages prerender to static HTML in every locale, and the full-text search index is generated. See Deploying for hosting.

What's next

enko