1
0
mirror of https://github.com/142vip/408CSFamily.git synced 2026-05-11 10:40:19 +08:00
Files
408CSFamily/docs/.vuepress/config/plugins.config.ts
妹妹下雨回不去 7bd3072ee1 refactor: 配置全局采用ts改写,优化导航栏
- ts改写配置文件
- 导航栏内容优化,修复一些问题
- 新增一些文档,调整样式显示
2023-03-02 16:38:11 +08:00

21 lines
485 B
TypeScript

import {searchProPlugin} from "vuepress-plugin-search-pro";
export default {
plugins:[
searchProPlugin({
// 索引全部内容
indexContent: true,
// 为分类和标签添加索引
customFields: [
{
getter: (page:any) => page.frontmatter.category,
formatter: "分类:$content",
},
{
getter: (page) => page.frontmatter.tag,
formatter: "标签:$content",
},
],
}),
]
}