Skip to content

Commit d82a741

Browse files
committed
feature:add search feature.
1 parent 4060f24 commit d82a741

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

package-lock.json

+41
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"@vuepress/bundler-vite": "2.0.0-rc.9",
1515
"vue": "^3.4.21",
1616
"vuepress": "2.0.0-rc.9",
17+
"vuepress-plugin-search-pro": "^2.0.0-rc.36",
1718
"vuepress-theme-hope": "2.0.0-rc.36"
1819
}
1920
}

src/.vuepress/theme.ts

+7
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ export default hopeTheme({
6868
},
6969

7070
plugins: {
71+
72+
// add search plugin
73+
searchPro: true,
74+
// searchPro: {
75+
// 插件选项
76+
// },
77+
7178
// Note: This is for testing ONLY!
7279
// You MUST generate and use your own comment service in production.
7380
comment: {

0 commit comments

Comments
 (0)