Repository navigation
SKaiNET site search on the docs site - #550
Merged
Merged
Conversation
Hybrid (BM25 + vector) client-side search for the docs site, powered by @skainet/antora-site-search from SKaiNET-rag: - Docker image: node 20 -> 22 (the indexer runs as Kotlin/Wasm in-process at build time and needs Node 22's default-on wasm GC); install the extension from its SKaiNET-rag release tarball (no npm registry). - Playbook: register the extension; bump the UI bundle to skainet-docs-ui v1.2.0, which ships the search box UX. Queries run entirely in the visitor's browser against _search/search.lrb published with the site. - CI: pin SOURCE_DATE_EPOCH to the last commit and add a determinism canary (build twice, byte-compare search.lrb) — it already caught a real page-order nondeterminism during rehearsal, fixed in extension 0.1.1. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…less pages) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Dogfoods SKaiNET-rag site search on our own docs: hybrid BM25 + vector search, fully client-side — the site ships
_search/search.lrb(~718 KB for current content) plus a 415 KB wasm engine (~155 KB compressed) that lazy-loads on first focus of the search box. No search server.What changes
docs/.docker/Dockerfile: node 20 → 22 (the indexer is Kotlin/Wasm, run in-process at build time; needs Node 22's default-on wasm GC) and installs@skainet/antora-site-search0.1.1 from its release tarball — no npm registry involved.docs/antora-playbook.yml: registers the extension; UI bundle → skainet-docs-ui v1.2.0 (ships the search UX: grouped results, highlighting, keyboard nav, dark mode)..github/workflows/docs.yml:SOURCE_DATE_EPOCHpinned to the last commit + a determinism canary — the site is built twice andsearch.lrbbyte-compared. Rehearsing exactly this canary locally caught a real bug (Antora's concurrent content aggregation varies page order run-to-run), fixed in extension 0.1.1.Verified locally with this exact image: two containerized builds →
search.lrbbyte-identical; headless Chrome against the built site — engine lazy-loads on focus, 286 sections indexed, query "tool calling llama" returns anchored hits, ArrowDown+Enter navigates totool-calling.html#_supported_chat_templates.v1.2.0tag) — the playbook's UI URL 404s until then, so this PR's docs build will stay red up to that point.🤖 Generated with Claude Code