Repository navigation
Move catalog previews to pinned asset repository - #355
Merged
Merged
Conversation
leaf-agent
reviewed
Sep 6, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The pin and the catalog agree at b3a29a03 — I fetched the archive and the ten example-*.jpg digests match every /media/<hash>.jpg in docs/examples.html, so the build path this PR ships is consistent. The refresh path that produces the next pin is not: example-previews.py writes it to example-previews.lock while example_assets.py reads example-previews.json, so wt refresh-previews publishes new images and rewrites the catalog to their addresses while leaving the checkout pinned to the old commit. Details inline.
leaf-agent
approved these changes
Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the generated catalog JPEGs out of the installed Leaf payload and pins the exact
max-sixty/leaf-assetscommit that each checkout builds against.site.pyfetches that revision into.tmpwhen absent, so local builds, CI, and Cloudflare Static Assets all consume the same bytes.wt setupnow prepares the asset cache alongside the browser and Worker dependencies.wt refresh-previewscaptures the macOS-font render, validates a complete site against it, pushes the images to the asset repository, and updates Leaf's pin and content-addressed catalog links.Closes #176. Thanks to @leaf-agent for reporting it.
Verified with the 903-test everyday suite, the 26-test published-site browser suite, pre-commit, and the Worker's TypeScript and Vitest gates.