Getting started
mdsite turns a folder of Markdown into a static website. It is one binary with no runtime dependencies and no configuration file.
Build it
You need Go 1.26 or later.
go build -o mdsite ./cmd/mdsite
Preview while you write
mdsite serve docs -open
The browser reloads when you save. If a rebuild fails, the previous version stays on screen with the reason at the top.
Publish
mdsite build docs -o public -strict
Every link in the output is relative, so you can open public/index.html from disk,
zip the folder, or host it under any path. With -strict, a broken link makes the
command exit with status 1.