Skip to content

Commit 6d8900a

Browse files
author
litongjava
committed
add search plugin and seo plugin
1 parent 2f3cad6 commit 6d8900a

File tree

3 files changed

+111
-6
lines changed

3 files changed

+111
-6
lines changed

docs/.vuepress/config/plugins.js

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
// import { searchPlugin } from "@vuepress/plugin-search";
22
// import { pwaPlugin } from "@vuepress/plugin-pwa";
3-
// import { seoPlugin } from "@vuepress/plugin-seo";
3+
import { seoPlugin } from "@vuepress/plugin-seo";
4+
import { searchProPlugin } from "vuepress-plugin-search-pro";
45
export default [
56
// searchPlugin({}),
67
// pwaPlugin({}),
7-
// seoPlugin({
8-
// hostname: "tio-boot-docs.vercel.app",
9-
// // 选项
10-
// }),
8+
seoPlugin({
9+
hostname: "tio-boot-docs.vercel.app",
10+
// 选项
11+
}),
12+
searchProPlugin({
13+
// your options
14+
}),
1115
];

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@
1212
},
1313
"devDependencies": {
1414
"@vuepress/bundler-vite": "^2.0.0-rc.7",
15+
"@vuepress/plugin-seo": "2.0.0-rc.26",
1516
"@vuepress/theme-default": "^2.0.0-rc.11",
1617
"vue": "^3.4.0",
17-
"vuepress": "^2.0.0-rc.7"
18+
"vuepress": "^2.0.0-rc.7",
19+
"vuepress-plugin-search-pro": "2.0.0-rc.38"
1820
}
1921
}

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)