mirror of
https://github.com/Xahau/xahau-web.git
synced 2026-08-23 02:50:51 +00:00
16 lines
503 B
TypeScript
16 lines
503 B
TypeScript
import { defineCollection, z } from 'astro:content'
|
|
import { docsLoader } from '@astrojs/starlight/loaders'
|
|
import { docsSchema } from '@astrojs/starlight/schema'
|
|
import { glob } from 'astro/loaders'
|
|
|
|
export const collections = {
|
|
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
|
|
privacy: defineCollection({
|
|
loader: glob({ pattern: '**/*.mdx', base: './src/content/privacy' }),
|
|
schema: z.object({
|
|
title: z.string(),
|
|
description: z.string(),
|
|
}),
|
|
}),
|
|
}
|