Skip to content

Commit 9087ce5

Browse files
committed
Add @easyops-cn/docusaurus-search-local for search functionality
1 parent e493fea commit 9087ce5

3 files changed

Lines changed: 153 additions & 0 deletions

File tree

docusaurus.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ const config = {
4141
theme: {
4242
customCss: require.resolve('./src/css/custom.css'),
4343
},
44+
4445
}),
4546
],
4647
],
@@ -123,6 +124,14 @@ const config = {
123124
content: `⭐️ If you like Chkware, give it a star on <a target="_blank" rel="noopener noreferrer" href="https://github.com/chkware/cli">GitHub</a> and follow us on <a target="_blank" rel="noopener noreferrer" href="https://twitter.com/chkware" >Twitter</a> ${TwitterSvg}`,
124125
},
125126
}),
127+
themes: [
128+
[
129+
require.resolve("@easyops-cn/docusaurus-search-local"),
130+
{
131+
hashed: true,
132+
},
133+
],
134+
],
126135
};
127136

128137
module.exports = config;

package-lock.json

Lines changed: 143 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"dependencies": {
1717
"@docusaurus/core": "2.0.0-beta.17",
1818
"@docusaurus/preset-classic": "2.0.0-beta.17",
19+
"@easyops-cn/docusaurus-search-local": "^0.22.0",
1920
"@mdx-js/react": "^1.6.22",
2021
"clsx": "^1.1.1",
2122
"prism-react-renderer": "^1.2.1",

0 commit comments

Comments
 (0)