summary
| description | Wobblyhead static site generator |
| owner | ark@wobblyhead.net |
| last change | 2026-10-22 14:59 +0200 |
README.md
# wobbly_ssg
A small static site generator. It turns a tree of Markdown files into a tree of
HTML pages, using plain HTML templates. Images referenced from the pages are
copied or scaled down. Pages get link preview metadata and tags, and each
tag gets an index page.
The generator is a single Python script. It needs Python 3 with
python-markdown and Pillow, and nothing else. There are no plugins and no
JavaScript toolchain.
## Quick start
cd example
../tools/make_site.py -c -r
The site in `example/` is built into `example/www/`. Open
`example/www/index.html` in a browser.
All tools work on the site in the current directory.
## Documents
- [doc/design.md](doc/design.md) -- requirements and design decisions.
- [doc/format.md](doc/format.md) -- the site layout, the configuration, the
source format and the template syntax.
- [doc/build.md](doc/build.md) -- what a build does: images, link previews,
tag index pages, link checking, reporting.
- [doc/tools.md](doc/tools.md) -- the command line of every tool.
- [doc/history.md](doc/history.md) -- material removed from the documentation.
## Tools
- `tools/make_site.py` builds the site.
- `tools/make_dist.sh` packs the built site into an archive for a given
address.
- `tools/get_version.sh` prints the version of the site from its Mercurial
tags.
- `tools/update_index.py` rewrites the entry lists of the index pages from
the headers of the pages they list.
- `tools/update_updated.sh` sets the `updated_at` header from the file
modification time.
## Example site
`example/` holds a minimal site: a configuration, a few pages with an image,
a `robots.txt`, and a template set. The stylesheet keeps the browser
defaults and adjusts only spacing, line length, tables and images.