Skip to content

Commit

Permalink
Fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
lerela committed Jan 3, 2024
1 parent 5766c01 commit 3c62001
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 16 deletions.
1 change: 0 additions & 1 deletion docs/README.md

This file was deleted.

16 changes: 1 addition & 15 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,21 +155,7 @@ const config = {
respectPrefersColorScheme: true,
},
}),
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
// language: ["en", "zh"],
// ```
}),
],
],
plugins: [require.resolve('docusaurus-lunr-search')],
};

module.exports = config;
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
"@easyops-cn/docusaurus-search-local": "^0.38.1",
"@mdx-js/react": "^3.0.0",
"clsx": "^1.2.1",
"docusaurus-lunr-search": "^3.3.1",
"lunr": "^2.3.9",
"prism-react-renderer": "^2.3.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
Loading

0 comments on commit 3c62001

Please sign in to comment.