deuxième aventure
This commit is contained in:
@@ -1,17 +1,17 @@
|
||||
import { defineCollection, z } from 'astro:content';
|
||||
|
||||
// Collection pour les articles du journal d'aventure
|
||||
// Collection pour le Journal de bord de la campagne JDR
|
||||
const journalCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
author: z.string(),
|
||||
publishDate: z.date(),
|
||||
tags: z.array(z.string()).optional(), // Ajout des balises (optionnel)
|
||||
tags: z.array(z.string()).optional(),
|
||||
}),
|
||||
});
|
||||
|
||||
// Collection pour les logs de construction
|
||||
// Collection pour les logs de développement et de réflexion
|
||||
const logsCollection = defineCollection({
|
||||
type: 'content',
|
||||
schema: z.object({
|
||||
@@ -21,7 +21,24 @@ const logsCollection = defineCollection({
|
||||
}),
|
||||
});
|
||||
|
||||
// Collection pour le "Codex de la Substance" (apprentissage)
|
||||
const codexCollection = defineCollection({
|
||||
type: "content",
|
||||
schema: z.object({
|
||||
title: z.string(),
|
||||
subtitle: z.string(),
|
||||
publishDate: z.date(),
|
||||
tags: z.array(z.string()),
|
||||
domain: z.string(), // Le nouveau champ pour le domaine d'étude
|
||||
concept2D: z.string(),
|
||||
mecanique: z.string(),
|
||||
vision3D: z.string(),
|
||||
status: z.enum(["Acquis", "En cours", "À explorer"]),
|
||||
}),
|
||||
});
|
||||
|
||||
export const collections = {
|
||||
journal: journalCollection,
|
||||
logs: logsCollection,
|
||||
codex: codexCollection,
|
||||
};
|
||||
Reference in New Issue
Block a user