move plugin config in separate file

This commit is contained in:
mahula 2023-11-17 17:24:40 +01:00
parent b846f6273a
commit 94e39eb098

View File

@ -0,0 +1,18 @@
import { searchProPlugin } from 'vuepress-plugin-search-pro'
export default [
searchProPlugin({
indexContent: true,
autoSuggestions: true,
customFields: [
{
getter: (page) => page.frontmatter.category,
formatter: "Category: $content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "Tag: $content",
},
],
}),
]