Skip to content

Commit 72cc17d

Browse files
committed
fix(docs): docs collection prefix
1 parent 7cdef73 commit 72cc17d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/content.config.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,20 @@ const createPricingFeatureSchema = () => z.object({
1010

1111
export default defineContentConfig({
1212
collections: {
13+
docs: defineCollection({
14+
type: 'page',
15+
source: {
16+
include: 'docs/**',
17+
},
18+
schema: z.object({
19+
links: z.array(z.object({
20+
label: z.string(),
21+
icon: z.string(),
22+
to: z.string(),
23+
target: z.string().optional(),
24+
})).optional(),
25+
}),
26+
}),
1327
landing: defineCollection({
1428
type: 'page',
1529
source: [{

0 commit comments

Comments
 (0)