Sh2website/docs/.vuepress/collections.ts
2025-10-28 00:09:49 +08:00

31 lines
819 B
TypeScript

/* @see https://theme-plume.vuejs.press/guide/collection/ 查看文档了解配置详情。 */
import { defineCollection, defineCollections } from 'vuepress-theme-plume'
const Guide = defineCollection({
type: 'doc',
dir: 'guide',
linkPrefix: '/guide',
title: '指南',
sidebar: 'auto'
});
const Faq = defineCollection({
type: 'post',
dir: 'faq',
title: '常见问题',
link: '/faq/',
// linkPrefix: '/article/', // 相关文章的链接前缀
// postList: true, // 是否启用文章列表页
// tags: true, // 是否启用标签页
archives: false, // 是否启用归档页
// categories: true, // 是否启用分类页
// postCover: 'right', // 文章封面位置
// pagination: 15, // 每页显示文章数量
})
export default defineCollections([
Guide,
Faq
])