wobblyhead hg > wobbly_ssg
diff README.md @ 0:71dd8d58a8e5 default tip
cleaned up re-init from net_wobblyhead_www project tooling
| author | ark |
|---|---|
| date | 2026-10-22 14:59 +0200 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/README.md Thu Oct 22 14:59:43 2026 +0200 @@ -0,0 +1,48 @@ +# 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.
