Repository navigation
docs: split Layout into a namespace with five focused guides - #7125
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
github-actions
Bot
requested review from
cvkxx,
ernestt,
kentonquatman and
rubyycheung
October 7, 2026 18:50
Contributor
PR Analysis Report
|
ernestt
approved these changes
Oct 7, 2026
josephfarina
force-pushed
the
docs/layout-progressive-disclosure
branch
from
October 7, 2026 20:10
9463b82 to
14570fb
Compare
Split the 22 KB layout monolith into a layout namespace with six child guides: - layout/scaffold — pick the frame and choose navigation - layout/structure — rank content, pick containers - layout/headers-and-footers — pin a header or footer - layout/side-panels — add a master-detail panel - layout/layout-spacing — tune alignment, rhythm, density - layout/responsive — adapt regions to width changes Max context per query drops from 22 KB to ~2.6 KB. Remove layout.doc.dense.mjs. Update links in principles.
josephfarina
force-pushed
the
docs/layout-progressive-disclosure
branch
from
October 7, 2026 20:44
14570fb to
f35c9e0
Compare
This was referenced Oct 8, 2026
cixzhang
added a commit
that referenced
this pull request
Oct 8, 2026
cixzhang
added a commit
that referenced
this pull request
Oct 8, 2026
…lease classifier (#7195) * ci(changesets): check PR changeset coverage with the release classifier * test(changesets): red arms for #7125 and #7154 coverage gaps * perf(changesets): batch tree reads; ignore fixed-group co-bumps * ci(changesets): resolve composed typedefs; attribute only distinctive ids by mention; wire lint; document * ci(changesets): release audit accepts fix-up Changesets citing the PR * style: prettier * ci(changesets): classify on both sides, name fields by full identity, trim * ci: check the generated CLI README on pull requests
4 tasks done
This branch was successfully deployed
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.
What this does
The Layout doc was a 22 KB, 15-section monolith sitting in the unorganized bucket. An agent asking "how do I add a side panel" loaded all 22 KB. It covered four separate concerns in one flat topic.
Split it into a
layoutnamespace at the docs tree root with six child guides, each answering one decision a builder makes:layout/scaffoldlayout/structurelayout/headers-and-footerslayout/side-panelslayout/layout-spacinglayout/responsiveContext cost
Before: every layout question loaded the full 22 KB topic.
After: max single guide load is ~6.1 KB. Each search query lands on the right child guide.
Search results (after)
layout/side-panelslayout/side-panelslayoutthenlayout/scaffoldlayout/structure#containerslayout/responsivelayout/headers-and-footerslayout/layout-spacing#alignmentlayout/layout-spacing#densityThe tree flattens automatically via
astryx docs layout --depth all.Also
layout.doc.dense.mjs(the short guides already serve that purpose){@link generic:layout}in principles to{@link namespace:layout}What it does NOT do
Minor release (10-08)
This PR removes the
layoutflat topic route and replaces it with a namespace. The namespace owns the same route, soastryx docs layoutstill works — it shows the namespace listing instead of the monolith. No route is removed; no breaking change. Safe for a patch.