mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2025-12-06 03:26:44 +03:00
18 lines
407 B
TypeScript
18 lines
407 B
TypeScript
import { defineCollection, z } from 'astro:content';
|
|
|
|
// Define a schema for the documentation collection
|
|
const docsCollection = defineCollection({
|
|
type: 'content',
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string(),
|
|
order: z.number().optional(),
|
|
updatedDate: z.date().optional(),
|
|
}),
|
|
});
|
|
|
|
// Export the collections
|
|
export const collections = {
|
|
'docs': docsCollection,
|
|
};
|