Repository navigation
docs: search finds typos, other word endings, keywords, and what each section says - #159
Conversation
… section says Search matched only exact substrings of titles, headings, and descriptions, so "gannt" found nothing although Gantts has its own heading. The index now holds each page's and heading's text and a page's keywords frontmatter, and the dialog matches typos, prefixes, and word endings, ranks by where a word is found, marks the matches, and shows the text that matched when the title doesn't.
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for GitHub merge request c37e0f28-062d-4ada-a80a-39a91a7cea2e. Verified the prepared HEAD, clean worktree, successful required checks, and current search logic. Both prior common-word findings are fixed and their threads are explicitly resolved; no actionable P0/P1 findings remain. No repair commit or push was needed. Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md Session Command failed: git -C /home/workspace/babysitter-data/tmp/vitehub-provider-NDYLsg update-index --no-skip-worktree -- AGENTS.md fatal: Unable to mark file AGENTS.md |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 14215d4c4f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
comark-annotate
comark-badge
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-mark
comark-media
comark-metrics
comark-outline
@onmax/comark
comark-properties
comark-qr
comark-reading-time
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-xref
comark-zoom
commit: |
There was a problem hiding this comment.
Important
Exact searches for common words are broken even though the PR documents them as searchable when they are the whole query.
Reviewed changes
- Search index — Added keyword aliases and indexed page intros plus h2/h3 section prose while excluding code blocks.
- Fuzzy matching — Added normalization, prefixes, word endings, typo distance, common-word filtering, and ranking across indexed fields.
- Search results — Added up to 20 results, matched-word highlighting, and text excerpts when the title does not contain the match.
- Docs metadata and coverage — Added keywords across the docs and expanded the browser search checks for typos, keyword-only terms, and section text.
gpt-5.6-sol | 𝕏
|
Fixed both common-word search findings: exact equality is checked first, while common query words now skip prefix, ending, and typo matching, so |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Common-word exact matching — Restored exact matches for queries made entirely of common words while preserving filtering for common words in mixed queries.
gpt-5.6-sol | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Documentation guidance — Updated
AGENTS.mdand the Agents guide wording in the merge commit; no search behavior changed since the prior review. - Common-word matching — Re-reviewed the exact-match fix at
docs/build.ts; all-common queries remain searchable while common words stay filtered from mixed queries.
gpt-5.6-sol | 𝕏
Main gained the quiz package (#167), search keywords (#159), and the rename to comark-ui (#169). This branch folds each package's docs into one page, so quiz's five pages become packages/quiz/docs/index.md, and the preset's keywords move to Getting started. The redirect worker keeps both moves: old hosts go to comark-ui.onmax.me, and old per-topic pages to each package's page.
…t the workspace test #159's search e2e expected the charts sections at /charts/syntax/, but this branch folds them into /charts/. The rename to comark-ui lengthened the workspace test's homepage line past the formatter's width.
…t UI's (#168) * feat!: publish the preset as comark-ui, and lay out the docs like Nuxt UI's @onmax/comark becomes comark-ui, the one install the docs recommend. The rail drops from one item per package to Docs, Components, Typography, Linter, and Playground, and each package's pages merge into one page in Usage, Examples, API, Theme order, ending with how to install it alone. Old pages redirect to the merged ones. BREAKING CHANGE: @onmax/comark is now comark-ui; import comarkUi from "comark-ui/html". * test(e2e): follow the docs' new names and pages * docs: complete merged API and redirect fixes * test: move the merged search e2e to the folded charts page, and format the workspace test #159's search e2e expected the charts sections at /charts/syntax/, but this branch folds them into /charts/. The rename to comark-ui lengthened the workspace test's homepage line past the formatter's width. * docs(metrics): document stat tile contracts --------- Co-authored-by: vitehub-bot[bot] <320448255+vitehub-bot[bot]@users.noreply.github.com> Co-authored-by: vitehub-bot[bot] <vitehub-bot[bot]@users.noreply.github.com>
* feat(ui): lay out Markdown tables from their cells A table with ids, links, and two prose columns squeezed its short columns until `portal #1596` broke into `#159` and `6`, chips included, since a chip may break anywhere and its icon added nothing to the cell's minimum width. The new tableLayout plugin, on by default, reads each top-level table while parsing. Short columns stay on one line. A table wider than a readable column goes in a data-wide div and grows into the room beside the text. A table with two or more prose columns stacks the later ones under the first when it gets under 85% of its width, and becomes one column per row on a phone. It's data attributes and container queries in the typeset, with no script. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ui): preserve table layout through comments and native geometry * test(ui): align wide-block assertion with comments wrapper selector --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>

Search only matched exact substrings of page titles, headings, and descriptions, so
ganntfound nothing even though the charts Syntax page has a Gantts heading. Search now finds pages by typos, other forms of a word, aliases, and the text under each heading.What a query matches, best first:
Ganttsmatchesgantt)themefinds Theming,sortingfinds sort)gannt,screnshot,frontmater). Typos are only tried when the typed word isn't in the index, sovideodoesn't find Vimeo, and never on short words or on the first letterThe index (
search.json) now holds each page's tagline and intro text, each heading's section text (code blocks left out), and a newkeywordsfrontmatter field. Every package overview, guide, recipe, and the comparison page get aliases they don't say themselves:lightboxandmedium-zoomfor zoom,admonitionfor github's callouts,accordionandspoilerfor details,gantt,timeline, androadmapfor charts,asciinemafor cast, and so on.Ranking weighs where a word was found (title 10, keywords 6, section label and description 3, text 1), adds a bonus when the query covers most of the title, and scores Doctor rule pages at 0.6 so a block's own docs come before the rules about it. When no entry has every word, it shows the entries with the most. Common words such as
how,to, andtheare dropped unless they're the whole query.The dialog bolds the matched words. When the title doesn't explain the match, the result shows a two-line excerpt of the text that does. It shows up to 20 results, up from 12, and Doctor results are now labelled
Doctorinstead ofDocs.search.jsongrows from 98 KB to 379 KB (101 KB gzipped). It still loads only when search is hovered or opened, and a query takes about 1 ms over the 827 entries.AGENTS.md says when to add
keywords.Checks
e2e/play.e2e.ts: the search test now also checks a typo (ganntopens/charts/syntax/#gantts), a keyword-only word (lightboxopens/zoom/), and a text-only word (heatmapopens Any chart withheatmapmarked in its excerpt).docs.e2e.tsandplay.e2e.ts(17 passed) against the static build,tsc --noEmit,vp lintandvp fmton the changed files,pnpm run lint:docs, andtest/workspace.test.ts.navigation.e2e.tsneeds the Nuxt output, which only CI'spnpm docs:buildproduces, so it was not run locally.