feat: add local search to docs site (closes #203) (#282)

* feat: add local search to docs site (closes #203)

* chore: update package-lock.json for search plugin

* fix: biome  format docusaurus config
This commit is contained in:
Jeet Jawale
2026-03-18 16:16:29 +00:00
committed by GitHub
parent e8f53405c1
commit cdd23f5ecf
3 changed files with 440 additions and 4 deletions
+15
View File
@@ -60,6 +60,21 @@ const config: Config = {
standaloneDevPort: "3006",
},
},
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
hashed: true,
indexDocs: true,
indexBlog: false,
indexPages: false,
docsRouteBasePath: "/",
searchResultLimits: 8,
searchResultContextMaxLength: 50,
explicitSearchResultPath: true,
},
],
],
presets: [
[
"classic",