Repository navigation
Open Extending with Pages and Layout tabs, and retire /pages/ - #5957
Merged
Merged
Conversation
…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.
# Conflicts: # browser/runtime/passages.js
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
leaf-agent
approved these changes
Nov 14, 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.
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_copyfails on main too), and the docs caption page-search test, now on Extending.