Building this site

The site is statically generated from orgmode-files using emacs, and then hosted on github pages. The source is on github.

  1. As part of a github action:
    1. nix installs emacs with its required packages (based on using nix shell as a shebang).
    2. ox-publish generates html from org-files in content/.

      I use a pre-generated stylesheet for org-exports, which in includes syntax-highlighting for src-blocks. For now this seems (almost) good enough, but its missing highlighting for nix and haskell. There is a way to make htmlize generate css when exporting the org-files, but for that to work a grammar for every language needs to be available, and it should not clash with a global css.

    3. the generated files are pushed to the ochsnerd/ochsnerd.github.io repo.
  2. github magically publishes the files.

The above process is largely based on the tutorial by System Crafters.

Emacs 30.1 (Org mode 9.7.11)