Skip to content

Commit

Permalink
feature:add search feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
GoogTech committed Apr 22, 2024
1 parent 4060f24 commit d82a741
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
41 changes: 41 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@vuepress/bundler-vite": "2.0.0-rc.9",
"vue": "^3.4.21",
"vuepress": "2.0.0-rc.9",
"vuepress-plugin-search-pro": "^2.0.0-rc.36",
"vuepress-theme-hope": "2.0.0-rc.36"
}
}
7 changes: 7 additions & 0 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ export default hopeTheme({
},

plugins: {

// add search plugin
searchPro: true,
// searchPro: {
// 插件选项
// },

// Note: This is for testing ONLY!
// You MUST generate and use your own comment service in production.
comment: {
Expand Down

0 comments on commit d82a741

Please sign in to comment.