Skip to content

Publish static Leaf version history - #310

Merged
max-sixty merged 6 commits into
mainfrom
codex/site-as-leaf
Sep 5, 2026
Merged

max-sixty merged 6 commits into
mainfrom
codex/site-as-leaf

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Static-hosted examples currently appear as drafts and their historical version addresses return 404 because GitHub Pages cannot synthesize Leaf's virtual /versions/vN.html routes.

This materializes the same runtime-document projections during the site build and derives current and pinned document identity from the event-backed version map before the Leaf runtime loads. The canonical page source, immutable revisions, and events remain the record; generated version files are disposable delivery output. The static session also exposes revision-bounded comparison views, so the version menu's comparison and navigation paths both work.

Verified with the complete published-site browser suite, the everyday test suite, pre-commit, and a light/dark browser sweep of the two-version example.

This was written by Codex on behalf of max-sixty

@max-sixty
max-sixty merged commit d999e7e into main Sep 5, 2026
6 checks passed
@max-sixty
max-sixty deleted the codex/site-as-leaf branch September 5, 2026 21:25
max-sixty added a commit that referenced this pull request Sep 5, 2026
Static-hosted examples currently appear as drafts and their historical
version addresses return 404 because GitHub Pages cannot synthesize
Leaf's virtual `/versions/vN.html` routes.

This materializes the same runtime-document projections during the site
build and derives current and pinned document identity from the
event-backed version map before the Leaf runtime loads. The canonical
page source, immutable revisions, and events remain the record;
generated version files are disposable delivery output. The static
session also exposes revision-bounded comparison views, so the version
menu's comparison and navigation paths both work.

Verified with the complete published-site browser suite, the everyday
test suite, pre-commit, and a light/dark browser sweep of the
two-version example.

> _This was written by Codex on behalf of max-sixty_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants