Skip to content

SKaiNET site search on the docs site - #1563

Merged
michalharakal merged 2 commits into
developfrom
site-search
Nov 23, 2026
Merged

michalharakal merged 2 commits into
developfrom
site-search

Conversation

@michalharakal

Copy link
Copy Markdown
Contributor

Dogfoods SKaiNET-rag site search on our own docs: hybrid BM25 + vector search, fully client-side — the site ships _search/search.lrb 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, 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-search 0.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-ui footer-scripts.hbs override 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.

⚠️ Hold merge until skainet-docs-ui v1.2.0 is released (PR #3 merge + v1.2.0 tag) — 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

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>
@github-actions

Copy link
Copy Markdown

📖 Documentation Preview

The documentation has been built successfully for this PR.

Generated Files:

  • Operator documentation: docs/modules/operators/_generated_/
  • JSON schema output: operators.json

Artifacts:

  • Download the documentation-preview-1563 artifact to view the complete documentation locally.

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>
@github-actions

Copy link
Copy Markdown

📖 Documentation Preview

The documentation has been built successfully for this PR.

Generated Files:

  • Operator documentation: docs/modules/operators/_generated_/
  • JSON schema output: operators.json

Artifacts:

  • Download the documentation-preview-1563 artifact to view the complete documentation locally.

This comment will be updated automatically when the PR is updated.

@michalharakal
michalharakal merged commit 8bc0151 into develop Nov 23, 2026
19 checks passed
@michalharakal
michalharakal deleted the site-search branch November 23, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant