[AAASM-3550] ✨ (docs): Add local search to the Docusaurus site#176
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Claude Code — review result ✅ CI green — full suite passes: CodeQL, SonarCloud, Scope vs AAASM-3550 — fully covered. Docusaurus ships no search by default; this adds offline/local search via Ready for approval + merge. |



Target
Task summary:
Add offline/local search to the Node SDK Docusaurus site (
node-sdk/website/) so readers can find docs without an external service. Uses@easyops-cn/docusaurus-search-local— a community theme that builds a client-side search index at build time (zero external service, no Algolia account).Task tickets:
Key point change (optional):
Two small commits:
Add dependency —
@easyops-cn/docusaurus-search-local@^0.55.2added towebsite/package.jsondevDependenciesandwebsite/pnpm-lock.yamlupdated.0.55.2declares peer support for@docusaurus/theme-common ^2 || ^3and React^19, matching this site (Docusaurus3.10.1, React19).Wire it in — registered the theme in the
themesarray ofdocusaurus.config.ts, alongside the existing@docusaurus/theme-mermaid. Because docs are served at the site root (routeBasePath: "/") and there is no blog, the indexer is pointed at/with blog/page indexing off:As-is: no search box. To-be: a working search box (and
/searchpage) backed by a build-time index for every version channel.Effecting Scope
Action Types:
Scopes:
Additional description:
Docs-site config only. No SDK runtime / public API changes.
Description
@easyops-cn/docusaurus-search-local(^0.55.2) towebsite/package.jsondevDependencies+ refreshedwebsite/pnpm-lock.yaml.website/docusaurus.config.ts(themesarray) withhashed,indexDocs,docsRouteBasePath: "/",language: ["en"].How to verify
[SUCCESS] Generated static files in "build".build/search-index.json(~403 KB of real content) for the root and every version channel (/next/, allvX.Y.Zsnapshots), plus a/searchpage (build/search/index.html).TS2304/TS2591/TS2584warnings on../src/**(missing@types/nodein the typedoc parse context) are emitted onmastertoo, with or without this change, and do not fail the build.Closes AAASM-3550.
🤖 Generated with Claude Code