Colophon

This capsule is rendered entirely from a small collection of org files. The author is an on-and-off emacs user, not particularly committed, rather unaware of all the awesome features, but is a text/plain and text/org believer and aspiring elisp practitioner. Anyways, it's actually kinda cool how it all works, the setup is rather minimal and is based on the org-export (ox) and the ox-gmi package, modified to fit the particular needs of this capsule.

That it is a collection of org files and not one file is kind of arbitrary, to be honest, but it leads to some folder structure in the output, so I'm keeping it this way.

There are

The modified ox-gmi recursively renders the org files, such that every first-level heading is exported into its own file.

The cool thing is links. The links between headings are then rendered as links between files, and because the org links and the gmi export links follow matching patterns, it all works really well.

There's one hack specifically for the links: for some reason, the heading matcher can either work with file links or "fuzzy", and both a link to an unspecified headings, so there is one dirty hack, where strings that contain "gemini:" are matched to a specific rendering function, that I haven't found an idiomatic elisp way to fix. Guess that's an imperfection that I'll live with, because it fixes the problem, is unlikely to shoot in the foot, and — importantly — who cares, really.

Beware: the source file is about 730 LOC and quite wide at times. Feel free to take it and use it though.

This allows calling ox with C-c C-e P p, which then recursively publishes the whole thing as a tree of .gmi files. It's kinda neat actually, works like magic.

Then the whole thing is served to the rest of the internet as a collection of plain files. That's about it.

Feel free to configure org-export for a project that has a single org file like

△ That's about it. Try it out, let me know how it works for you

previous note -> Geminiläiset

mucho naps