新建项目,集成官方docs,初次提交

This commit is contained in:
2025-07-24 19:48:59 +08:00
commit 999fbdb9c8
36 changed files with 16269 additions and 0 deletions

25
content.config.ts Normal file
View File

@@ -0,0 +1,25 @@
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
landing: defineCollection({
type: 'page',
source: 'index.md'
}),
docs: defineCollection({
type: 'page',
source: {
include: '**',
exclude: ['index.md']
},
schema: z.object({
links: z.array(z.object({
label: z.string(),
icon: z.string(),
to: z.string(),
target: z.string().optional()
})).optional()
})
})
}
})