Skip to content

Commit 62c0fff

Browse files
committed
added search bar in the navbar
1 parent 94a9f2b commit 62c0fff

File tree

3 files changed

+2365
-65
lines changed

3 files changed

+2365
-65
lines changed

docusaurus.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,14 @@ module.exports = {
145145
},
146146
],
147147
],
148+
plugins: [
149+
[
150+
require.resolve("@easyops-cn/docusaurus-search-local"),
151+
{
152+
indexDocs: false,
153+
indexBlog: true,
154+
indexPages: true,
155+
},
156+
],
157+
],
148158
};

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": "^3.5.2",
1818
"@docusaurus/preset-classic": "^3.5.2",
19+
"@easyops-cn/docusaurus-search-local": "^0.48.5",
1920
"@mdx-js/react": "^3.0.1",
2021
"@svgr/webpack": "^5.5.0",
2122
"clsx": "^1.1.1",

0 commit comments

Comments
 (0)