lion/src/content.config.ts
2025-10-03 09:37:32 +02:00

24 lines
726 B
TypeScript

import { defineCollection } from 'astro:content';
import { glob } from 'astro/loaders';
const lionComponents = defineCollection({
loader: glob({ pattern: '**/*.md', base: './docs/components' }),
});
const lionFundamentals = defineCollection({
loader: glob({ pattern: '**/*.md', base: './docs/fundamentals' }),
});
const lionGuides = defineCollection({
loader: glob({ pattern: '**/*.md', base: './docs/guides' }),
});
const lionBlog = defineCollection({
loader: glob({ pattern: '**/*.md', base: './docs/blog' }),
});
const lionIndex = defineCollection({
loader: glob({ pattern: 'index.md', base: './docs' }),
});
export const collections = { lionComponents, lionFundamentals, lionGuides, lionBlog, lionIndex };