docs: move to fumadocs 14 (#338)

This commit is contained in:
Bereket Engida
2024-10-25 21:54:21 +03:00
committed by GitHub
parent 7ac51a0b2d
commit 68eaf7e47a
18 changed files with 1032 additions and 251 deletions

35
docs/source.config.ts Normal file
View File

@@ -0,0 +1,35 @@
import {
defineCollections,
defineDocs,
getDefaultMDXOptions,
} from "fumadocs-mdx/config";
import { defineConfig } from "fumadocs-mdx/config";
import { remarkInstall } from "fumadocs-docgen";
import { z } from "zod";
export default defineConfig({
mdxOptions: {
remarkPlugins: [
[
remarkInstall,
{
persist: {
id: "persist-install",
},
},
],
],
},
});
export const changelog = defineCollections({
type: "doc",
dir: "./content/changelog",
schema: z.object({
title: z.string(),
}),
});
export const { docs, meta } = defineDocs({
dir: "./content/docs",
});