Skip to content

docs: split Layout into a namespace with five focused guides - #7125

Merged
josephfarina merged 1 commit into
mainfrom
docs/layout-progressive-disclosure
Oct 7, 2026
Merged

josephfarina merged 1 commit into
mainfrom
docs/layout-progressive-disclosure

Conversation

@josephfarina

@josephfarina josephfarina commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

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 layout namespace at the docs tree root with six child guides, each answering one decision a builder makes:

Guide Decision Size
layout/scaffold Pick the frame and choose navigation ~5.8 KB
layout/structure Rank content, pick containers ~5.1 KB
layout/headers-and-footers Pin a header or footer ~2.2 KB
layout/side-panels Add a master-detail panel ~2.6 KB
layout/layout-spacing Tune alignment, rhythm, density ~6.1 KB
layout/responsive Adapt regions to width changes ~3.4 KB

Context 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)

Query Top result
how do I add a side panel layout/side-panels
side panel layout/side-panels
SideNav or TopNav layout then layout/scaffold
Card or rows layout/structure#containers
responsive breakpoints layout/responsive
pinned header footer layout/headers-and-footers
alignment content line layout/layout-spacing#alignment
density compact layout/layout-spacing#density

The tree flattens automatically via astryx docs layout --depth all.

Also

  • Removes layout.doc.dense.mjs (the short guides already serve that purpose)
  • Updates {@link generic:layout} in principles to {@link namespace:layout}
  • Updates docs tests for the new namespace
  • 0 tree errors, 0 link problems, 112 docs tests pass, 89 search tests pass, 40 layout tests pass

What it does NOT do

  • Does not remove any safety or behavior fact — every fact is preserved, moved to its owner
  • Does not change any CLI command behavior
  • Does not touch the broader docs graph (tokens, theme, migration are next under kt-pn87)

Minor release (10-08)

This PR removes the layout flat topic route and replaces it with a namespace. The namespace owns the same route, so astryx docs layout still works — it shows the namespace listing instead of the monolith. No route is removed; no breaking change. Safe for a patch.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 7, 2026
@vercel

vercel Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 7, 2026 8:50pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
⏳ Queued (for maintainers only) Oct 7, 2026, 8:58 PM UTC

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Previews ready: Storybook and Sandbox were built with this PR's docsite. CI evidence will be added when available.

View Storybook for this PR · View Sandbox for this PR

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
josephfarina force-pushed the docs/layout-progressive-disclosure branch from 14570fb to f35c9e0 Compare October 7, 2026 20:44
@josephfarina
josephfarina merged commit a5c83ba into main Oct 7, 2026
38 checks passed
@github-actions
github-actions Bot deleted the docs/layout-progressive-disclosure branch October 8, 2026 06:25
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

This branch was successfully deployed

1 active deployment
Preview — f35c9e01 Deployed Oct 7, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants