diff --git a/scripts/sync-static-site.sh b/scripts/sync-static-site.sh index 39be6389e..3c68df78d 100755 --- a/scripts/sync-static-site.sh +++ b/scripts/sync-static-site.sh @@ -11,6 +11,20 @@ set -euo pipefail cd "$(dirname "$0")/.." echo "▸ Building Next.js static export…" +# From a cleared cache, deliberately. Turbopack's incremental build does not +# always evict a Tailwind utility whose last use has just been deleted, so the +# CSS chunk keeps a rule the source no longer justifies. That chunk is named +# after its own content hash, so the snapshot then disagrees with a clean build +# — which is how two snapshot commits reached CI carrying utilities for classes +# that had already been removed from the components. The snapshot only has value +# if it is reproducible, and a few seconds of cold build is the price of that. +# +# Note for whoever edits this comment: Tailwind v4 detects content by scanning +# every file in the project that isn't ignored, this script included. Spelling a +# utility class out in prose here is enough to put that rule back into the +# bundle, which is its own small version of the bug described above. Describe +# them, don't quote them. +rm -rf .next out npm run build echo "▸ Snapshotting out/ → static-site/…" diff --git a/src/components/SiteHeader.tsx b/src/components/SiteHeader.tsx index 03b733506..516dfc65a 100644 --- a/src/components/SiteHeader.tsx +++ b/src/components/SiteHeader.tsx @@ -108,16 +108,27 @@ export function SiteHeader() { use Space Mono for it and silently substituted a system font — a different typeface at a different optical size, sitting on its own baseline, next to - text that is Space Mono. Drawing the caret removes the - dependency on what the visitor's OS happens to ship. */} + text that is Space Mono. + + Drawn as a chevron rather than a filled wedge: at + 14px a solid triangle collapses into something that + reads as a full stop, which is exactly what the + substituted glyph looked like. Two strokes with round + caps stay legible at this size and match the site's + hairline borders and underline rules. */} {open && ( diff --git a/static-site/404.html b/static-site/404.html index 099268752..324c33ebb 100644 --- a/static-site/404.html +++ b/static-site/404.html @@ -1 +1 @@ -