File tree Expand file tree Collapse file tree 3 files changed +1475
-2040
lines changed
Expand file tree Collapse file tree 3 files changed +1475
-2040
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,21 @@ const config = {
123123 darkTheme : darkCodeTheme ,
124124 } ,
125125 } ) ,
126+ themes : [
127+ [
128+ require . resolve ( "@easyops-cn/docusaurus-search-local" ) ,
129+ /** @type {import("@easyops-cn/docusaurus-search-local").PluginOptions } */
130+ ( {
131+ // ... Your options.
132+ // `hashed` is recommended as long-term-cache of index file is possible.
133+ hashed : true ,
134+ // For Docs using Chinese, The `language` is recommended to set to:
135+ // ```
136+ // language: ["en", "zh"],
137+ // ```
138+ } ) ,
139+ ] ,
140+ ] ,
126141} ;
127142
128143module . exports = config ;
Original file line number Diff line number Diff line change 1616 "dependencies" : {
1717 "@docusaurus/core" : " ^3.0.1" ,
1818 "@docusaurus/preset-classic" : " ^3.0.1" ,
19+ "@easyops-cn/docusaurus-search-local" : " ^0.39.0" ,
1920 "@mdx-js/react" : " ^3.0.0" ,
2021 "clsx" : " ^1.2.1" ,
2122 "prism-react-renderer" : " ^2.1.0" ,
You can’t perform that action at this time.
0 commit comments