annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
1 # wobbly_ssg
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
2
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
3 A small static site generator. It turns a tree of Markdown files into a tree of
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
4 HTML pages, using plain HTML templates. Images referenced from the pages are
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
5 copied or scaled down. Pages get link preview metadata and tags, and each
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
6 tag gets an index page.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
7
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
8 The generator is a single Python script. It needs Python 3 with
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
9 python-markdown and Pillow, and nothing else. There are no plugins and no
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
10 JavaScript toolchain.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
11
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
12 ## Quick start
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
13
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
14 cd example
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
15 ../tools/make_site.py -c -r
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
16
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
17 The site in `example/` is built into `example/www/`. Open
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
18 `example/www/index.html` in a browser.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
19
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
20 All tools work on the site in the current directory.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
21
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
22 ## Documents
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
23
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
24 - [doc/design.md](doc/design.md) -- requirements and design decisions.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
25 - [doc/format.md](doc/format.md) -- the site layout, the configuration, the
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
26 source format and the template syntax.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
27 - [doc/build.md](doc/build.md) -- what a build does: images, link previews,
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
28 tag index pages, link checking, reporting.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
29 - [doc/tools.md](doc/tools.md) -- the command line of every tool.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
30 - [doc/history.md](doc/history.md) -- material removed from the documentation.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
31
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
32 ## Tools
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
33
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
34 - `tools/make_site.py` builds the site.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
35 - `tools/make_dist.sh` packs the built site into an archive for a given
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
36 address.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
37 - `tools/get_version.sh` prints the version of the site from its Mercurial
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
38 tags.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
39 - `tools/update_index.py` rewrites the entry lists of the index pages from
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
40 the headers of the pages they list.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
41 - `tools/update_updated.sh` sets the `updated_at` header from the file
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
42 modification time.
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
43
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
44 ## Example site
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
45
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
46 `example/` holds a minimal site: a configuration, a few pages with an image,
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
47 a `robots.txt`, and a template set. The stylesheet keeps the browser
71dd8d58a8e5 cleaned up re-init from net_wobblyhead_www project tooling
ark
parents:
diff changeset
48 defaults and adjusts only spacing, line length, tables and images.