mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 18:49:27 +01:00
92 lines
2.2 KiB
TypeScript
92 lines
2.2 KiB
TypeScript
import { defineCollection, defineContentConfig, z } from '@nuxt/content'
|
|
|
|
export default defineContentConfig({
|
|
collections: {
|
|
projects: defineCollection({
|
|
type: 'page',
|
|
source: 'projects/*.md',
|
|
schema: z.object({
|
|
slug: z.string(),
|
|
title: z.string(),
|
|
description: z.string(),
|
|
publishedAt: z.string(),
|
|
readingTime: z.number().optional(),
|
|
tags: z.array(z.string()),
|
|
cover: z.string(),
|
|
favorite: z.boolean().optional()
|
|
})
|
|
}),
|
|
usesCategories: defineCollection({
|
|
type: 'data',
|
|
source: 'uses/categories/*.md',
|
|
schema: z.object({
|
|
slug: z.string(),
|
|
name: z.string()
|
|
})
|
|
}),
|
|
uses: defineCollection({
|
|
type: 'data',
|
|
source: 'uses/*.md',
|
|
schema: z.object({
|
|
name: z.string(),
|
|
description: z.string(),
|
|
category: z.string()
|
|
})
|
|
}),
|
|
skills: defineCollection({
|
|
type: 'page',
|
|
source: 'skills.json',
|
|
schema: z.object({
|
|
description: z.string(),
|
|
body: z.array(z.object({
|
|
id: z.string(),
|
|
name: z.string(),
|
|
items: z.array(z.object({
|
|
name: z.string(),
|
|
icon: z.string()
|
|
}))
|
|
}))
|
|
})
|
|
}),
|
|
experiences: defineCollection({
|
|
type: 'data',
|
|
source: 'experiences/*.md',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
company: z.string(),
|
|
companyUrl: z.string().url().optional(),
|
|
startDate: z.string(),
|
|
endDate: z.string().optional(),
|
|
location: z.string(),
|
|
description: z.string(),
|
|
tags: z.array(z.string())
|
|
})
|
|
}),
|
|
education: defineCollection({
|
|
type: 'data',
|
|
source: 'education/*.md',
|
|
schema: z.object({
|
|
degree: z.string(),
|
|
institution: z.string(),
|
|
startDate: z.string(),
|
|
endDate: z.string().optional(),
|
|
location: z.string()
|
|
})
|
|
}),
|
|
contact: defineCollection({
|
|
type: 'page',
|
|
source: 'contact.json',
|
|
schema: z.object({
|
|
body: z.array(z.object({
|
|
name: z.string(),
|
|
url: z.string().url()
|
|
}))
|
|
})
|
|
}),
|
|
hobbies: defineCollection({
|
|
type: 'page',
|
|
source: 'hobbies.md'
|
|
})
|
|
}
|
|
})
|