First Site

Create a site, run the dev server, and build the final HTML.

Create a site:

code
leaf init website
cd website

Start the local server:

code
leaf serve --watch

The --watch flag rebuilds the site when files change. It starts simple and practical: polling now, native file watching later when it earns the job.

Create a page:

code
leaf new about

Build the site:

code
leaf build

Clean generated files:

code
leaf clean

If you want a fresh docs build too:

code
leaf clean --docs

Leaf keeps the workflow small on purpose. Write files, build files, ship files. Very civilized.