Repository navigation
SKaiNET site search on the docs site - #1563
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 (digest-pinned; the indexer runs as Kotlin/Wasm
in-process at build time and needs Node 22's default-on wasm GC); the
extension is declared in package.json via its SKaiNET-rag release-tarball
URL (no npm registry) and the lockfile was regenerated inside the new base
image per the Dockerfile's own instructions.
- Playbook: register the extension; bump the UI bundle to skainet-docs-ui
v1.2.0, which ships the search box UX. The supplemental-ui footer-scripts
override already includes {{> search-scripts}} behind the provider gate, so
the MathJax override and search coexist.
Queries run entirely in the visitor's browser against _search/search.lrb
published with the site; the engine (~155 KB compressed wasm) lazy-loads on
first focus of the search box. The determinism canary for the index lives in
SKaiNET-transformers' docs CI.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
📖 Documentation Preview The documentation has been built successfully for this PR. Generated Files:
Artifacts:
This comment will be updated automatically when the PR is updated. |
…less pages) Ten ROOT pages are authored starting at '== ' instead of a doctitle, so the catalog has no title for them and 0.1.1 refused to index the site (the failing build-docs run on this PR). 0.1.2 titles them by their first section heading. Lockfile regenerated in the base image. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
📖 Documentation Preview The documentation has been built successfully for this PR. Generated Files:
Artifacts:
This comment will be updated automatically when the PR is updated. |
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.lrbplus 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, digest-pinned (the indexer is Kotlin/Wasm, run in-process at build time; needs Node 22's default-on wasm GC).docs/.docker/package.json+ lockfile:@skainet/antora-site-search0.1.1 from its release tarball — no npm registry; lockfile regenerated inside the new base image per the Dockerfile's own instructions.docs/antora-playbook.yml: registers the extension; UI bundle → skainet-docs-ui v1.2.0 (ships the search UX). The supplemental-uifooter-scripts.hbsoverride already includes{{> search-scripts}}behind the provider gate, so MathJax and search coexist.The same stack is verified end-to-end in SKaiNET-transformers#550 (two containerized builds byte-identical, headless-Chrome UX check); the index-determinism canary lives in that repo's docs CI.
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