From 94e39eb098de0262eb71e99c617b9d40fa2e639a Mon Sep 17 00:00:00 2001 From: mahula Date: Fri, 17 Nov 2023 17:24:40 +0100 Subject: [PATCH] move plugin config in separate file --- .vuepress/config/plugins.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .vuepress/config/plugins.js diff --git a/.vuepress/config/plugins.js b/.vuepress/config/plugins.js new file mode 100644 index 000000000..c4d4eae87 --- /dev/null +++ b/.vuepress/config/plugins.js @@ -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", + }, + ], + }), +] \ No newline at end of file