Colophon
Table of Contents
How this site is written and published.
1. The page you are reading is a note
There is no CMS and no content directory that exists only to feed a website.
Every page here is an .org file living in an ordinary personal notes tree,
edited in the same editor and with the same keybindings as everything else in
it.
The goal: the source of a page should be somewhere you already are.
The repository layout, its sync and git arrangement, and the publish gate are the
README's subject — see README.org at the root of this tree.
2. The generator
Pages are org files rendered by weblorg — Emacs in batch mode, a template per
route, static HTML out. No JavaScript, no bundler, no build step beyond one
emacs --batch invocation. The output is copied to the web host with rsync.
Three of its behaviours:
- Link rewriting is textual. A link to
page.orgbecomespage.html— it is not resolved through the page's slug. So a link is only correct when the source filename and the output slug are the same string. This site therefore pins every page's slug to its own filename, as an invariant rather than a habit. Twelve links broke at once before that rule existed. - An input pattern with no wildcard is a fatal error. The glob expander returns a literal path unchanged, which the generator reads as "no matches" and treats as a configuration failure — silently aborting the whole file. A single named file therefore cannot be a route.
- Exclusion patterns match the whole path. An exclusion meant to skip a
docs/subdirectory will also match adocs/component anywhere in the absolute path — including the notes tree the content lives in. It must be anchored, or it excludes everything.
3. Changes are proven inert before they ship
The pipeline has been restructured twice while live. Both times the check was the same: build every site, record a checksum of every output file, make the change, rebuild, and compare.
Byte-identical output means a refactor moved things without changing them.
The same idea, applied one layer down, is how the configuration itself is verified — see Build and Deploy.