diff --git a/docs/.vuepress/config/plugins.js b/docs/.vuepress/config/plugins.js index fa303d1..4fadb52 100644 --- a/docs/.vuepress/config/plugins.js +++ b/docs/.vuepress/config/plugins.js @@ -1,21 +1,6 @@ -import { searchProPlugin } from 'vuepress-plugin-search-pro' import { redirectPlugin } from 'vuepress-plugin-redirect' export default [ - searchProPlugin({ - indexContent: true, - autoSuggestions: true, - customFields: [ - { - getter: (page) => page.frontmatter.category, - formatter: "Category: $content", - }, - { - getter: (page) => page.frontmatter.tag, - formatter: "Tag: $content", - }, - ], - }), redirectPlugin({ autoLocale: true, }) diff --git a/docs/.vuepress/config/theme.js b/docs/.vuepress/config/theme.js index 6bba529..6fc5ed5 100644 --- a/docs/.vuepress/config/theme.js +++ b/docs/.vuepress/config/theme.js @@ -98,6 +98,20 @@ export default hopeTheme({ sub: true, sup: true, vPre: true, - } + }, + searchPro: { + indexContent: true, + autoSuggestions: true, + customFields: [ + { + getter: (page) => page.frontmatter.category, + formatter: "Category: $content", + }, + { + getter: (page) => page.frontmatter.tag, + formatter: "Tag: $content", + }, + ], + }, } })