@@ -14,7 +14,7 @@ console.log('Mode:', isProd ? 'Production' : 'development')
1414
1515/**
1616 * @description Vuepress2 config
17- * @link https://v2.vuepress.vuejs.org/reference/config.html
17+ * @see https://v2.vuepress.vuejs.org/reference/config.html
1818 */
1919module . exports = defineUserConfig < DefaultThemeOptions , WebpackBundlerOptions > ( {
2020 base : '/' ,
@@ -119,7 +119,7 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
119119
120120 /**
121121 * @description Vuepress2 theme config
122- * @link https://v2.vuepress.vuejs.org/reference/theme-api.html
122+ * @see https://v2.vuepress.vuejs.org/reference/theme-api.html
123123 */
124124 themeConfig : {
125125 repo : 'https://github.com/Umajs/Umajs' ,
@@ -155,19 +155,19 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
155155 plugins : [
156156 /**
157157 * @description This plugin will import gtag.js for Google Analytics 4.
158- * @link https://v2.vuepress.vuejs.org/reference/plugin/google-analytics.html
158+ * @see https://v2.vuepress.vuejs.org/reference/plugin/google-analytics.html
159159 */
160- // [
161- // '@vuepress/google-analytics',
162- // {
163- // // we have multiple deployments, which would use different id
164- // id: process.env.ANALYTICS_ID ,
165- // },
166- // ],
160+ [
161+ '@vuepress/google-analytics' ,
162+ {
163+ // we have multiple deployments, which would use different id
164+ id : 'G-8YY0BNNYKN' ,
165+ } ,
166+ ] ,
167167
168168 /**
169169 * @description Provide local search to your documentation site
170- * @link https://v2.vuepress.vuejs.org/reference/plugin/search.html
170+ * @see https://v2.vuepress.vuejs.org/reference/plugin/search.html
171171 */
172172 [
173173 '@vuepress/plugin-search' ,
@@ -190,9 +190,10 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
190190 page . frontmatter . tags ?? [ ] ,
191191 } ,
192192 ] ,
193+
193194 /**
194195 * @description Algolia DocSearch
195- * @link https://v2.vuepress.vuejs.org/reference/plugin/docsearch.html
196+ * @see https://v2.vuepress.vuejs.org/reference/plugin/docsearch.html
196197 */
197198 [
198199 '@vuepress/docsearch' ,
@@ -214,9 +215,10 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
214215 // },
215216 // },
216217 ] ,
218+
217219 /**
218220 * @description Register Vue components from component files or directory automatically.
219- * @link https://v2.vuepress.vuejs.org/reference/plugin/register-components.html
221+ * @see https://v2.vuepress.vuejs.org/reference/plugin/register-components.html
220222 */
221223 [
222224 '@vuepress/register-components' ,
@@ -226,7 +228,8 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
226228 ] ,
227229
228230 /**
229- * @todo
231+ * @description Automatically generate a Sitemap for site
232+ * @see https://vuepress-theme-hope.github.io/sitemap
230233 */
231234 [
232235 'sitemap2' ,
@@ -237,11 +240,14 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
237240 ] ,
238241
239242 /**
240- * @Todo
243+ * @description PWA support
244+ * @see https://vuepress-theme-hope.github.io/pwa
241245 */
242246 [ 'vuepress-plugin-pwa2' ] ,
247+
243248 /**
244- * @todo
249+ * @description Automatic generation of detailed feed files
250+ * @see https://vuepress-theme-hope.github.io/feed
245251 */
246252 [
247253 'feed2' ,
@@ -251,61 +257,62 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
251257 ] ,
252258
253259 /**
254- * @todo
255- */
256- // [
257- // 'seo2',
258- // {
259- // author: 'JiaZeng',
260- // twitterID: 'UMajs',
261- // restrictions: '3+',
262- // // seo: () => {
263- // // return {
264- // // 'twitter:card': 'summary',
265- // // }
266- // // },
267- // // customMeta: (
268- // // meta: [Record<'content' | 'name' | 'charset' | 'http-equiv', string>]
269- // // ) => {
270- // // },
271- // },
272- // ],
273-
274- /**
275- * @description use more syntax in your Markdown files.
276- * @link https://vuepress-theme-hope.github.io/md-enhance/guide/
260+ * @description Inject the `<meta>` tag to enhance the search engine optimization of the site
261+ * @see https://vuepress-theme-hope.github.io/seo
277262 */
278263 [
279- 'md-enhance ' ,
264+ 'seo2 ' ,
280265 {
281- enableAll : true ,
282- tex : {
283- strict : 'ignore' ,
284- } ,
285- presentation : {
286- plugins : [
287- 'highlight' ,
288- 'math' ,
289- 'search' ,
290- 'notes' ,
291- 'zoom' ,
292- 'anything' ,
293- 'audio' ,
294- 'chalkboard' ,
295- ] ,
296- } ,
266+ author : 'JiaZeng' ,
267+ twitterID : 'UMajs' ,
268+ restrictions : '3+' ,
269+ // seo: () => {
270+ // return {
271+ // 'twitter:card': 'summary',
272+ // }
273+ // },
274+ // customMeta: (
275+ // meta: [Record<'content' | 'name' | 'charset' | 'http-equiv', string>]
276+ // ) => {
277+ // },
297278 } ,
298279 ] ,
299280
281+ /**
282+ * @description use more syntax in your Markdown files.
283+ * @see https://vuepress-theme-hope.github.io/md-enhance/guide/
284+ */
285+ // [
286+ // 'md-enhance',
287+ // {
288+ // enableAll: true,
289+ // tex: {
290+ // strict: 'ignore',
291+ // },
292+ // presentation: {
293+ // plugins: [
294+ // 'highlight',
295+ // 'math',
296+ // 'search',
297+ // 'notes',
298+ // 'zoom',
299+ // 'anything',
300+ // 'audio',
301+ // 'chalkboard',
302+ // ],
303+ // },
304+ // },
305+ // ],
306+
300307 /**
301308 * @description This plugin will provide a table-of-contents (TOC) component
302- * @link https://v2.vuepress.vuejs.org/reference/plugin/toc.html
309+ * @see https://v2.vuepress.vuejs.org/reference/plugin/toc.html
303310 */
304311 [ '@vuepress/plugin-toc' ] ,
305312
306313 /**
307314 * @description This plugin will enable syntax highlighting for markdown code fence with Shiki
308- * @link https://v2.vuepress.vuejs.org/reference/plugin/shiki.html
315+ * @see https://v2.vuepress.vuejs.org/reference/plugin/shiki.html
309316 */
310317 [
311318 '@vuepress/plugin-shiki' ,
@@ -314,12 +321,17 @@ module.exports = defineUserConfig<DefaultThemeOptions, WebpackBundlerOptions>({
314321 ? {
315322 /**
316323 * @description shiki theme preview
317- * @link https://vscodethemes.com/
324+ * @see https://vscodethemes.com/
318325 */
319326 theme : 'github-dark' ,
320327 }
321328 : false ,
322329 ] ,
330+
331+ /**
332+ * @description Add a debug component to your site. The component will only take effect in development mode
333+ * @see https://v2.vuepress.vuejs.org/reference/plugin/debug.html
334+ */
323335 [ '@vuepress/plugin-debug' ] ,
324336 ] ,
325337 onWatched : ( _ , watchers , restart ) => {
0 commit comments