Adopt Dagger CI for docs build (Phase 2) #157

Merged
eblume merged 6 commits from dagger-phase2-docs into main 2026-02-11 16:33:17 -08:00

6 commits

Author SHA1 Message Date
d99153191a Add changelog fragment and update Phase 2 status in plan doc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 16:27:28 -08:00
518e2ab737 Fix build_changelog: install git for towncrier staging
Towncrier calls `git add` on the updated CHANGELOG.md. Install git and
run `git init` in the Python container to satisfy this requirement.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 16:26:48 -08:00
83ceb491f3 Replace inline docs build with Dagger call in CI workflow
The ~44-line inline Quartz build (clone, npm ci, build, tar, cleanup)
is replaced by a single `dagger call build-docs` invocation. Adds the
Dagger CLI bootstrap step (same pattern as build-container.yaml).

Changelog step remains local since towncrier needs to modify the host
working tree for the git commit (fragment deletion). Build order is
docs-first so Dagger sees fragments before local towncrier removes them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 16:21:10 -08:00
7a579fd97a Add build_changelog and build_docs Dagger functions
build_changelog runs towncrier in a Python container and returns the
modified source tree. build_docs chains build_changelog then builds
the Quartz site in a Node container, returning the docs tarball.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 16:12:21 -08:00
5f060da2a8 Add docs-check-frontmatter mise task and pre-commit hook
Validates all docs have required frontmatter fields (title, tags,
date-modified). Follows the pattern of existing doc check tasks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 16:11:48 -08:00
1c32e351f7 Backfill date-modified frontmatter on all docs
Dagger's --src=. excludes .git, so Quartz can't use git history for
page dates inside containers. Populate date-modified: YYYY-MM-DD in
frontmatter for all 80 doc articles so the frontmatter priority level
(highest in quartz.config.ts) works with or without git.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-11 16:11:05 -08:00