Fetch upstream updates

- add search-pro back
- fetch upstream updates to fix sitemap bug
This commit is contained in:
Masterain
2023-01-17 00:44:54 -08:00
parent 4e8fe4ca6f
commit d7ac641c87
3 changed files with 303 additions and 210 deletions

View File

@@ -1,6 +1,7 @@
import { defineUserConfig } from "vuepress";
import { viteBundler } from '@vuepress/bundler-vite'
import theme from "./theme.js";
import { searchProPlugin } from "vuepress-plugin-search-pro";
export default defineUserConfig({
base: "/",
@@ -26,6 +27,21 @@ export default defineUserConfig({
},
},
plugins: [
searchProPlugin({
indexContent: true,
customFields:[
{
getter: (page) => page.frontmatter.category,
formatter: {
"/": "分类: $content",
"/en/": "Category$content",
},
},
]
})
],
theme,
shouldPrefetch: false,