feat: new public website

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-02 09:17:49 +01:00
parent e2536774b0
commit ac4429d6d9
206 changed files with 18415 additions and 12433 deletions

View File

@@ -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
},
});