Repository navigation
fix(search): index every word Foundation's sections show, published or not - #1613
Merged
gregpriday merged 5 commits intoNov 28, 2026
Merged
gregpriday merged 5 commits into
gregpriday merged 5 commits into
Conversation
Member
Author
|
Every other affected test file passed (624 of 628). |
…vas marker, published or not - Read Foundation's sections for site search through the designs that stand for their markup, as the Markdown copies do, with the theme's table cells and plan comparison - Read a section whose code only lost the editor's markers to a publication as shipped, so the published index and Markdown copies keep its words
- Group the search lines by the page's layer, a Foundation section's in the order its outline shows them - Turn the article header and News list search tests into ordinary tests - Hold the Markdown copies of a publication to the editor's
…eme's own table - Insert a Foundation section's words before its layer's others and a table's or comparison's after them, keeping the order of the rest - Read table cells only from the table as the app ships it - Cover slot order, hidden prices, the third plan, a published comparison's Markdown and a changed default
- Walk the layers the second pass finds once, from a cursor - Add lines one at a time, so a large table cannot overflow the stack
gregpriday
force-pushed
the
bugfix/issue-1351-site-search-index-omits-most-foundation
branch
from
November 28, 2026 09:43
59daea7 to
444595e
Compare
gregpriday
deleted the
bugfix/issue-1351-site-search-index-omits-most-foundation
branch
November 28, 2026 09:50
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.
Resolves #1351
The cases in the issue's steps (the Business starter's hero, Services cards, testimonials, call to action, Contact FAQs, and a
content.mediabullet) were already indexed ondevelop, through #1376's canvas-marker reading. Foundation text without a canvas marker was still missing: the bento's featured card, both prices and notes of the billing switch, a tab's name, the plan comparison's plans, prices and notes, table cells, and the article header and News rows. A publication also lost every Foundation outline: it strips the editor's markers, so the regenerated site no longer matched the bundled definitions. That emptied the published Markdown copies (#1350) of Foundation's words.Changes
pageText(src/generator/search.ts) keeps every linerenderedContentgives, in the same order, and adds the words of a secondwalkRenderedpass. That pass reads Foundation's sections through the same outline designs the Markdown copies use (shipped-outlines.ts), and reads the theme's table and plan comparison directly. It includes panels the page ships while hidden (an unchosen tab) and leaves out what is hidden at every size or a button that goes nowhere. Each section's words go in before its layer's other lines; table and comparison words go in after them. The result is a superset of the old index, so the existing exclusions (Site search's own box copy, gated frame titles and initials, form copy) are unchanged.rendersAsShipped(src/engine/shipped-copy.ts) also accepts the bundled definition with its editor markers removed, the way a publication carries it, compared exactly as supplied.shippedOutlineand the Markdown comparison gate use it, so the published index and the published Markdown copies keep Foundation's words.shippedAsIsstill governs what the editor may change.it.failssearch tests inarticles.test.ts(article header, News list) now pass as ordinary tests.Testing
search-index.jsand a search; the same index after marker stripping; design text around page slot content in order; a 15,000-row table (the earlier merge overflowed the stack);rendersAsShippedheld byte-equal towithoutCodeMarkersfor every bundled Foundation component, rejecting a changed source, name or default; published Markdown copies, including a comparison, equal the editor's.typecheck:changedgreen.