Repository navigation
Teach the Layouts as three page shapes and two box arrangements - #1438
Merged
Merged
Conversation
The site's Layout tab showed `layout-sidebar` as "a wide page", left `layout-wide` out, said a prose page declares nothing, and put a sidebar's status column last, which #1363 changed to the `aside` wherever it is written. The tab now shows the three page shapes on `main` (column, wide, workspace) and says `layout-sidebar` and `layout-tiles` arrange any box and widen `main`. The page-authoring guide's Layout table is split the same way, and no longer says every Layout works on any block: `layout-wide` and `layout-workspace` only act on `main`. TODO.md drops the workspace columns setting: each page's pane grid is its own CSS, and the one number it shares with the Layout (720px) is checked by `page check --render`. What the bullet also named, the feature gallery's copy of the pane-scrolling rules, needs the workspace Layout to work on a block, which it now states. The layout guidance cases score 3 of 3 on every case, against 2 of 3 on two of them at the base. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
reviewed
Sep 29, 2026
leaf-agent
left a comment
Collaborator
There was a problem hiding this comment.
The lint check fails because the pinned Prettier hook reformats the five new SVG <rect> elements in the wide-page figure. Applying pre-commit run prettier --files docs/how-it-works.html and committing its edits clears this formatting failure.
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 29, 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.
The five Layout classes are two kinds of thing: three page shapes that go on
main(layout-column,layout-wide,layout-workspace) and two arrangements of a box's children (layout-sidebar,layout-tiles), which also widenmainwhen put there.layouts.cssalready works this way, but the site and the guide didn't say so, and the site said several things that were wrong.Site (
docs/how-it-works.html, Layout tab). The figure's middle panel showedlayout-sidebaras "a wide page" andlayout-wideappeared nowhere; it now drawsmain.layout-wide, and a new paragraph says sidebar and tiles arrange any box. The column page no longer "declares nothing" (every such page declareslayout-column, and amainwithout a class is unarranged). The sidebar section no longer puts the status column last: since #1363 the track is theasidewherever it is written.Guide (
page-authoring.md). The Layout table is split into the three page shapes and the two arrangements. It had said every Layout goes on any block;layout-wideandlayout-workspaceact only onmain.TODO.md. The workspace columns setting is dropped: each page's pane grid is its own CSS, and the one number it shares with the Layout (720px) is already refused by
page check --renderwhen it drifts. The bullet's other half, the feature gallery's copy of the pane-scrolling rules, needslayout-workspaceto work on a block, and the bullet now says what that takes.Checks. The layout guidance cases (
page-arrangement-uses-layouts,queue-is-a-side-list,sidebar-page-at-900px,sidebar-track-is-its-aside,workspace-header-is-one-row,workspace-stacks-where-the-layout-flows) score 3 of 3 each, against 2 of 3 on two of them at the base.uv run pytest tests --nightly-changed-since mainpasses (1443). The Layout tab renders clean underpage check --render.🤖 Generated with Claude Code