完成目录架构变更

This commit is contained in:
2025-08-06 23:14:36 +08:00
parent cca2b53694
commit 41e273ed07
34 changed files with 25 additions and 20 deletions

View File

@@ -5,8 +5,23 @@ export default defineContentConfig({
docs: defineCollection({
type: 'page',
source: {
cwd: globalThis.__DOCS_DIR__,
include: '**',
include: 'docs/**',
exclude: ['/web/**']
},
schema: z.object({
rawbody: z.string(),
links: z.array(z.object({
label: z.string(),
icon: z.string(),
to: z.string(),
target: z.string().optional()
})).optional()
})
}),
blog: defineCollection({
type: 'page',
source: {
include: 'blog/**',
exclude: ['/web/**']
},
schema: z.object({