mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
24 lines
591 B
TypeScript
24 lines
591 B
TypeScript
import { defineCollection, defineConfig } from '@content-collections/core';
|
|
import { transformMDX } from '@fumadocs/content-collections/configuration';
|
|
import { metaSchema, pageSchema } from 'fumadocs-core/source/schema';
|
|
|
|
const docs = defineCollection({
|
|
name: 'docs',
|
|
directory: 'content/docs',
|
|
include: '**/*.mdx',
|
|
schema: pageSchema,
|
|
transform: transformMDX,
|
|
});
|
|
|
|
const metas = defineCollection({
|
|
name: 'meta',
|
|
directory: 'content/docs',
|
|
include: '**/meta.json',
|
|
parser: 'json',
|
|
schema: metaSchema,
|
|
});
|
|
|
|
export default defineConfig({
|
|
collections: [docs, metas],
|
|
});
|