feat: new public website
This commit is contained in:
@@ -1,11 +1,27 @@
|
||||
import { remarkGfm } from 'fumadocs-core/mdx-plugins';
|
||||
import {
|
||||
defineCollections,
|
||||
defineConfig,
|
||||
defineDocs,
|
||||
frontmatterSchema,
|
||||
metaSchema,
|
||||
} from 'fumadocs-mdx/config';
|
||||
import rehypeExternalLinks from 'rehype-external-links';
|
||||
import { z } from 'zod';
|
||||
|
||||
// You can customise Zod schemas for frontmatter and `meta.json` here
|
||||
// see https://fumadocs.dev/docs/mdx/collections
|
||||
export const docs = defineDocs({
|
||||
dir: 'content/docs',
|
||||
docs: {
|
||||
schema: frontmatterSchema,
|
||||
postprocess: {
|
||||
includeProcessedMarkdown: true,
|
||||
},
|
||||
},
|
||||
meta: {
|
||||
schema: metaSchema,
|
||||
},
|
||||
});
|
||||
|
||||
const zArticle = z.object({
|
||||
title: z.string().min(1),
|
||||
description: z.string(),
|
||||
@@ -19,10 +35,6 @@ const zPage = z.object({
|
||||
description: z.string(),
|
||||
});
|
||||
|
||||
export const { docs, meta } = defineDocs({
|
||||
dir: 'content/docs',
|
||||
});
|
||||
|
||||
export const articleCollection = defineCollections({
|
||||
type: 'doc',
|
||||
dir: './content/articles',
|
||||
@@ -49,7 +61,6 @@ export const pageMeta = defineCollections({
|
||||
|
||||
export default defineConfig({
|
||||
mdxOptions: {
|
||||
remarkPlugins: [remarkGfm],
|
||||
rehypePlugins: [rehypeExternalLinks],
|
||||
// MDX options
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user