From 4208165d0a633b9ef21ea58d31d22eb81eec211e Mon Sep 17 00:00:00 2001 From: William Kong <37934615+Mrright024@users.noreply.github.com> Date: Tue, 14 May 2024 20:59:44 +0800 Subject: [PATCH] seoPlugin --- docs/.vuepress/config.js | 4 +++- package-lock.json | 1 + package.json | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 1d7c05c..32de97e 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -5,6 +5,7 @@ import { mdEnhancePlugin } from "vuepress-plugin-md-enhance"; import { shikiPlugin } from '@vuepress/plugin-shiki' import { copyCodePlugin } from '@vuepress/plugin-copy-code' import { googleAnalyticsPlugin } from '@vuepress/plugin-google-analytics' +import { seoPlugin } from '@vuepress/plugin-seo' export default defineUserConfig({ bundler: viteBundler(), @@ -101,7 +102,8 @@ export default defineUserConfig({ }), googleAnalyticsPlugin({ id: 'G-Q7K6GXDZRC', - }) + }), + seoPlugin(), ], bundlerConfig: { diff --git a/package-lock.json b/package-lock.json index 0dbcf4e..4b244a6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "@vuepress/plugin-copy-code": "^2.0.0-rc.28", "@vuepress/plugin-docsearch": "^2.0.0-rc.28", "@vuepress/plugin-google-analytics": "^2.0.0-rc.21", + "@vuepress/plugin-seo": "^2.0.0-rc.28", "@vuepress/plugin-shiki": "^2.0.0-rc.0", "@vuepress/theme-default": "^2.0.0-rc.28", "mathjax-full": "^3.2.2", diff --git a/package.json b/package.json index 768b859..6979a02 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "@vuepress/plugin-copy-code": "^2.0.0-rc.28", "@vuepress/plugin-docsearch": "^2.0.0-rc.28", "@vuepress/plugin-google-analytics": "^2.0.0-rc.21", + "@vuepress/plugin-seo": "^2.0.0-rc.28", "@vuepress/plugin-shiki": "^2.0.0-rc.0", "@vuepress/theme-default": "^2.0.0-rc.28", "mathjax-full": "^3.2.2",