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