mirror of
https://github.com/ArthurDanjou/artmcp.git
synced 2026-01-14 14:44:21 +01:00
fix: mettre à jour la configuration des collections et des fichiers de contenu pour une meilleure gestion des données
This commit is contained in:
@@ -3,7 +3,7 @@ import { defineCollection, defineContentConfig, z } from '@nuxt/content'
|
||||
export default defineContentConfig({
|
||||
collections: {
|
||||
projects: defineCollection({
|
||||
type: 'page',
|
||||
type: 'data',
|
||||
source: 'projects/*.md',
|
||||
schema: z.object({
|
||||
slug: z.string(),
|
||||
@@ -34,7 +34,7 @@ export default defineContentConfig({
|
||||
})
|
||||
}),
|
||||
skills: defineCollection({
|
||||
type: 'page',
|
||||
type: 'data',
|
||||
source: 'skills.json',
|
||||
schema: z.object({
|
||||
description: z.string(),
|
||||
@@ -74,7 +74,7 @@ export default defineContentConfig({
|
||||
})
|
||||
}),
|
||||
contact: defineCollection({
|
||||
type: 'page',
|
||||
type: 'data',
|
||||
source: 'contact.json',
|
||||
schema: z.object({
|
||||
body: z.array(z.object({
|
||||
@@ -86,11 +86,11 @@ export default defineContentConfig({
|
||||
})
|
||||
}),
|
||||
hobbies: defineCollection({
|
||||
type: 'page',
|
||||
type: 'data',
|
||||
source: 'hobbies.md'
|
||||
}),
|
||||
languages: defineCollection({
|
||||
type: 'page',
|
||||
type: 'data',
|
||||
source: 'languages.json',
|
||||
schema: z.object({
|
||||
body: z.array(z.object({
|
||||
@@ -101,7 +101,7 @@ export default defineContentConfig({
|
||||
})
|
||||
}),
|
||||
profile: defineCollection({
|
||||
type: 'page',
|
||||
type: 'data',
|
||||
source: 'profile.md'
|
||||
}),
|
||||
documentation: defineCollection({
|
||||
|
||||
Reference in New Issue
Block a user