Skip to content

Open Extending with Pages and Layout tabs, and retire /pages/ - #5957

Merged
max-sixty merged 4 commits into
mainfrom
agent-a8aa816beca1c8fde
Nov 14, 2026
Merged

max-sixty merged 4 commits into
mainfrom
agent-a8aa816beca1c8fde

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Folds the Pages guide into Extending, which now opens with Pages and Layout tabs before its package tabs, and retires /pages/. Extending's reader becomes whoever builds on Leaf, from a page's own markup to a package: its boundary ladder already starts at a page, and Pages' themes now sit beside the CSS contracts that build on them.

Pages' Contents and Themes tabs become the Pages tab, opened by the first sentence of Pages' old introduction; its Layout tab moves as is. Sections move whole by id, and two ids Extending already used are renamed (page-sources, page-boundaries). Extending's lede, description and scope sentence now name pages as well as packages, and a few sentences that pointed across the two guides now point within the page. The sentences in Using, How it works and README that sent readers to Pages now send them to Extending. /pages/ returns 404 with no redirect, like the routes #5836 removed. Every link inside the repository follows its section, and the route bar and the Worker's route test drop /pages/.

Max picked this home on the #4052 decision page; it is the last change that issue asked for (Ref #4052, already closed). An independent reviewer used the built site cold and read the moved prose against main, and its findings are folded in. Live preview: http://macbook-pro-7.tail85bb6a.ts.net:8764/extending/

Tests: a full site build, pnpm run check:worker, the product-page model tests (test_a_composed_part_refuses_an_authored_copy fails on main too), and the docs caption page-search test, now on Extending.

This was written by Claude Code on behalf of max-sixty

…pace run can't freeze the tab

Page search joined a query's words with `(?:[ws]+|edge)+`, a nested quantifier.
Where the page's raw text held the query's first word followed by a long run of
whitespace and then something other than the next word, the regex engine tried
every split of the run before giving up: on the Using guide, a search for "card
It opens" still held the main thread when a five-minute probe gave up, and the
test harness saw it in Chromium and Firefox both. The gap is
now `[ws edge]+`, the same set of strings, which fails such a run in one pass.

Found while moving the docs caption test to the reader pages (#5836): its
How it works and Using cases never filled the search box, because the page was
stuck in `findText`. The test gets its How it works case back, and a small page
with an 80-space run holds the fix: it times out on the old pattern.
Max picked this home for the Pages guide on the #4052 decision page. Its reader
was a page's author, and the person who opens it either wants to know what their
agent can make or builds on Leaf themselves, which is Extending's reader once it
starts at a page's own markup. Extending's boundary ladder already starts there,
and Pages' themes now sit beside the CSS contracts that build on them.

Pages' Contents and Themes tabs become Extending's Pages tab, opened by the first
sentence of Pages' old introduction; its Layout tab becomes Extending's Layout tab.
Sections move whole by id; two that Extending already used are renamed
(page-sources, page-boundaries). /pages/ returns 404 with no redirect, and every
link inside the repository follows its section. Extending's scope sentence names
pages, and the sentences in Using, How it works and README that sent readers to
Pages now send them to Extending. The route bar and the Worker's route test drop
/pages/.
# Conflicts:
#	tests/browser/test_render_anchors.py
@max-sixty
max-sixty merged commit aa60927 into main Nov 14, 2026
5 checks passed
@max-sixty
max-sixty deleted the agent-a8aa816beca1c8fde branch November 14, 2026 20:07
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