Repository navigation
Build a page directory's index.html with the packages its layer record keeps - #5894
Merged
Merged
Conversation
…d keeps `leaf-dev probe`, `preview --source` and the fixture builder read a sibling `layer.json` as a list of package names, the examples' manifest. A page directory's `layer.json` is its layer record, an object, so probing a page's `index.html` failed with "unknown package 'format'", though the probe's help says a page directory's index.html builds as it stands. `source_packages` now reads a page's record through `layer_record` and takes its packages.
leaf-agent
approved these changes
Nov 12, 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.
leaf-dev probe,preview --sourceand the fixture builder took a source's package selection from a siblinglayer.json, reading it as the examples' manifest, a list of package names. A page directory'slayer.jsonis its layer record, an object, so probing a real page'sindex.htmlfailed with "unknown package 'format'", though the probe's help says a page directory'sindex.htmlbuilds as it stands.source_packagesnow reads a page's record throughlayer_recordand takes its packages; the record's theme is left alone, since fixtures build under an empty configuration that takes the default theme.Found while reproducing the thread card gap (#5853) on the page the user commented on.
leaf-dev probenow builds two real page directories, one with thediffpackage. A new model test fails without the change.test_preview_file_subscription_follows_atomic_replacementsfails with and without it.