A tiny static site generator for html and gemini
21fb839b — Clarity Flowers 1 year, 6 months ago
Update to zig 0.9.1
237d1d20 — Clarity Flowers 2 years ago
Move command parsing into separate stage
b552015f — Clarity Flowers 2 years ago
Remove unused functions


browse  log 



You can also use your local clone with git send-email.

#Website Generator

A single-file Zig project to generate static html and gemini pages for my website from markdown-ish syntax.

View the documentation

This software is by no means stable and you shouldn't depend on it unless you're comfortable with editing the source yourself.


You will need to install zig.

Depends on zig-date as a submodule.

git clone --recurse-submodules https://github.com/clarityflowers/sitegen.git
cd sitegen
zig build

This will produce zig-cache/bin/sitegen. To install to, say, ~/bin, you could instead run zig-cache --prefix ~.

#How to read the source

All of the code is inside src/main.zig. At the top of the file is a doc comment with some directions on where to find what you're looking for.