-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcontent.config.ts
More file actions
26 lines (25 loc) · 856 Bytes
/
Copy pathcontent.config.ts
File metadata and controls
26 lines (25 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { defineContentConfig, defineCollection, z } from '@nuxt/content'
export default defineContentConfig({
collections: {
content: defineCollection({
type: 'page',
source: '**/*.md',
// `rawbody` keeps the original markdown alongside the parsed AST so the
// MCP `get_whitepaper` tool can serve content/whitepaper.md as real
// markdown (same trick as the `guides` collection below).
schema: z.object({
rawbody: z.string(),
}),
}),
guides: defineCollection({
type: 'page',
source: 'guide/**/*.md',
// `rawbody` makes Nuxt Content keep the original markdown alongside the
// parsed AST, so the MCP `get_guide` tool can hand the model real
// markdown instead of the render tree.
schema: z.object({
rawbody: z.string(),
}),
}),
},
})