Skip to content

Commit cc60713

Browse files
committed
feat: search
1 parent 67a0a7f commit cc60713

File tree

3 files changed

+405
-27
lines changed

3 files changed

+405
-27
lines changed

docusaurus.config.ts

+11
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,17 @@ const config: Config = {
135135
additionalLanguages: ['bash'],
136136
},
137137
} satisfies Preset.ThemeConfig,
138+
139+
themes: [
140+
[
141+
require.resolve("@easyops-cn/docusaurus-search-local"),
142+
/** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
143+
({
144+
hashed: true,
145+
indexBlog: false,
146+
}),
147+
]
148+
]
138149
};
139150

140151
export default config;

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"dependencies": {
1919
"@docusaurus/core": "3.5.2",
2020
"@docusaurus/preset-classic": "3.5.2",
21+
"@easyops-cn/docusaurus-search-local": "^0.45.0",
2122
"@mdx-js/react": "^3.0.0",
2223
"clsx": "^2.0.0",
2324
"prism-react-renderer": "^2.3.0",

0 commit comments

Comments
 (0)