mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-30 20:35:22 +08:00
Update config.ts
This commit is contained in:
+15
-15
@@ -1,6 +1,6 @@
|
||||
import { defineUserConfig } from "vuepress";
|
||||
import theme from "./theme.js";
|
||||
import { searchProPlugin } from "vuepress-plugin-search-pro";
|
||||
//import { searchProPlugin } from "vuepress-plugin-search-pro";
|
||||
|
||||
export default defineUserConfig({
|
||||
base: "/",
|
||||
@@ -10,23 +10,23 @@ export default defineUserConfig({
|
||||
description: "QChatGPT项目的Wiki页",
|
||||
|
||||
theme,
|
||||
plugins: [
|
||||
searchProPlugin({
|
||||
//plugins: [
|
||||
// searchProPlugin({
|
||||
// 索引全部内容
|
||||
indexContent: true,
|
||||
// indexContent: true,
|
||||
// 为分类和标签添加索引
|
||||
customFields: [
|
||||
// customFields: [
|
||||
{
|
||||
getter: (page) => page.frontmatter.category,
|
||||
formatter: "分类:$content",
|
||||
},
|
||||
{
|
||||
getter: (page) => page.frontmatter.tag,
|
||||
formatter: "标签:$content",
|
||||
},
|
||||
],
|
||||
}),
|
||||
],
|
||||
// getter: (page) => page.frontmatter.category,
|
||||
// formatter: "分类:$content",
|
||||
// },
|
||||
// {
|
||||
// getter: (page) => page.frontmatter.tag,
|
||||
// formatter: "标签:$content",
|
||||
// },
|
||||
// ],
|
||||
// }),
|
||||
//],
|
||||
// Enable it with pwa
|
||||
// shouldPrefetch: false,
|
||||
head: [
|
||||
|
||||
Reference in New Issue
Block a user