This repository contains the source files for levineuwirth.org in their entirety and is automatically updated whenever the website is rebuilt. https://levineuwirth.org
Go to file
Levi Neuwirth 29c4b80a2a
vita: generate /about from the CV data instead of hand-copying it
The vita page carried a hand-typed duplicate of education, publications,
presentations, and experience, and had drifted from the PDFs in about
fifteen places — Shu Lab still one entry titled "Undergraduate
Researcher" three months after the degree, Weenix at ~7,000 lines, CHASE
still "accepted" after being presented, a preprint missing entirely, and
two different code URLs for the same paper.

build/Vita.hs reads yaml-source/data/*.yml — the same files the PDF
pipeline builds from — and renders education, experience (keeping the
CV's research/industry split), publications, presentations, and contact.
Drift is now structurally impossible rather than merely discouraged.

Notes on the implementation:

- The YAML is LaTeX-flavoured because xelatex is its first consumer, so
  values pass through a small closed converter (\textbf, \textit,
  \texttt, \href, $\times$, $\delta$, \#, {,}, ~, --, ---). Escaping
  happens before conversion; unhandled commands pass through visibly
  rather than silently dropping their argument.
- Scalars are parsed loosely: the same logical field is sometimes a YAML
  number and sometimes a string (`year: 2026` vs `year: "2026--2027"`),
  and the PDF pipeline does not care, so this does not force it to.
- personal.yml's phone number is deliberately not read. It is printed on
  the CV, which is handed to a chosen reader; this page is crawled.
- Contact chips carry labels (ORCID, Forgejo, GitHub) rather than the
  CV's full display values, which exist because paper cannot be clicked.

The page keeps only what nothing else on the site owns: the pointers and
the four research threads. In-progress work belongs to /current, the
engineering index to /cv/projects/, and the narrative to /me/ — whose
abstract already described this page as the formal record.

vita.css composes on item-card.css and mirrors now.css's headings and
chip geometry, so /about and /current read as one system. Link chips get
the only interaction polish on the page, being the one affordance a
printed CV cannot offer.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SUGesXiMmACsLBTGG1xuEU
2026-08-11 08:40:33 +02:00
archive Archive: close out the audit-pass refinements 2026-06-19 16:23:14 -04:00
build vita: generate /about from the CV data instead of hand-copying it 2026-08-11 08:40:33 +02:00
content vita: generate /about from the CV data instead of hand-copying it 2026-08-11 08:40:33 +02:00
data cv: August 2026 refresh across CV, résumé, and site 2026-08-10 23:40:14 +02:00
nginx Rich reference popups: arXiv lead figures, prominent Wikipedia images 2026-06-10 13:02:15 -04:00
paper sync before transfer 2026-07-27 19:10:51 -04:00
static vita: generate /about from the CV data instead of hand-copying it 2026-08-11 08:40:33 +02:00
systemd Archive: close out the audit-pass refinements 2026-06-19 16:23:14 -04:00
templates vita: generate /about from the CV data instead of hand-copying it 2026-08-11 08:40:33 +02:00
tests sync before transfer 2026-07-27 19:10:51 -04:00
tools sync before transfer 2026-07-27 19:10:51 -04:00
yaml-source chore: track CV/résumé pipeline source 2026-08-10 23:40:01 +02:00
.env.example States/Context/Embeddings fixes 2026-04-26 11:22:57 -04:00
.gitignore chore: track CV/résumé pipeline source 2026-08-10 23:40:01 +02:00
.python-version GPG signing, embedding pipeline, visualization filter, search timing, sig popups 2026-03-20 20:14:49 -04:00
ARCHIVE.md Archive: close out the audit-pass refinements 2026-06-19 16:23:14 -04:00
AUDIT-2026-06-09.md Add 2026-06-09 repository audit findings 2026-06-09 18:57:43 -04:00
AUDIT.md Add AUDIT.md 2026-05-07 15:07:48 -04:00
HOMEPAGE.md affiliation, cabal helper script 2026-03-26 08:14:50 -04:00
LICENSE Add MIT License to the project 2026-03-15 19:02:33 +00:00
MARKS.md Marks I 2026-05-07 23:51:14 -04:00
Makefile sync before transfer 2026-07-27 19:10:51 -04:00
PHOTOGRAPHY.md Spec dilemma 2026-05-01 21:22:01 -04:00
README.md Docs: align WRITING.md and README with the implementation 2026-06-10 09:43:25 -04:00
WRITING.md Docs: align WRITING.md and README with the implementation 2026-06-10 09:43:25 -04:00
cabal.project initial deploy! whoop 2026-03-17 21:56:14 -04:00
cabal.project.freeze sync before transfer 2026-07-27 19:10:51 -04:00
levineuwirth.cabal vita: generate /about from the CV data instead of hand-copying it 2026-08-11 08:40:33 +02:00
pyproject.toml Last audit stragglers: scaffolder, refreeze safety, atomic-write polish 2026-06-10 11:43:14 -04:00
uv.lock Last audit stragglers: scaffolder, refreeze safety, atomic-write polish 2026-06-10 11:43:14 -04:00

README.md

levineuwirth.org

Personal site of Levi Neuwirth — essays, blog posts, poetry, fiction, and music. Built with Hakyll and Pandoc, with a custom build system in build/ and a Haskell + JS + Python toolchain.

Quickstart

make build              # one-shot production build into _site/
make dev                # dev build (drafts visible) + local server on :8000
make watch              # Hakyll live-reload dev server (drafts visible)
make clean              # cabal run site -- clean
make deploy             # clean → build → sign → push → rsync to VPS

make build always runs make clean implicitly when invoked from make deploy. For day-to-day work, prefer make dev (which serves the site on http://localhost:8000) or make watch (Hakyll's live-reload preview server, which rebuilds on save and serves the site locally).

Run make build any time you add or replace binary assets (JPEG/PNG figures, PDFs, music assets). make dev and make watch skip the convert-images.sh / pdf-thumbs preprocessing steps, so a fresh JPEG will have no .webp companion and a fresh PDF will have no thumbnail until a full make build regenerates them. Once the companions exist they survive subsequent make dev runs.

Optional features

  • Similar-links and embeddings. tools/embed.py precomputes page-level embeddings for the "Related" block. To enable:

    uv sync                 # creates .venv with sentence-transformers, faiss-cpu
    

    The build silently skips embedding when .venv is absent.

  • Client-side semantic search. Downloads a quantized ONNX model used by static/js/semantic-search.js (run once; files are gitignored):

    make download-model
    
  • Image conversion. make build calls tools/convert-images.sh to produce .webp companions next to every JPEG/PNG. Requires cwebp (libwebp on Arch, webp on Debian/Ubuntu).

  • PDF thumbnails. make pdf-thumbs generates first-page thumbnails for PDFs in static/papers/ using pdftoppm (poppler on Arch, poppler-utils on Debian/Ubuntu). Skipped silently when missing.

Configuration

.env (gitignored, copy from .env.example) holds the GitHub PAT and the VPS rsync target consumed by make deploy. Never commit it.

Repository layout

  • build/ — Haskell build system (Hakyll rules, Pandoc filters, contexts). See build/Filters/ for the Pandoc AST transforms (sidenotes, wikilinks, transclusion, score embedding, viz, …).
  • content/ — authored Markdown (essays, blog, poetry, fiction, music).
  • templates/ — Hakyll/Pandoc HTML templates.
  • static/ — CSS, JS, fonts, images, vendored PDF.js.
  • tools/ — Python tooling (embeddings, importers) and shell scripts.
  • data/ — generated and source data (commonplace.yaml, annotations.json, bibliographies, similar-links.json).
  • nginx/ — vhost snippets shipped to the VPS (security-headers.conf, static-assets.conf, popup-proxy.conf). The live vhost on the VPS is the source of truth; see nginx/vhost.conf.example for the canonical structure and the include order these snippets expect.

Architecture pointers

  • build/Site.hs is the Hakyll rules entry point.
  • build/Patterns.hs defines canonical content patterns shared by Backlinks, Authors, Tags, and Site.
  • build/Compilers.hs wires the Pandoc filter chain into Hakyll.
  • build/Filters/Images.hs does WebP <picture> wrapping; requires the .webp companions produced by tools/convert-images.sh.

License

See LICENSE.