mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: move to fumadocs 14 (#338)
This commit is contained in:
35
docs/source.config.ts
Normal file
35
docs/source.config.ts
Normal 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",
|
||||
});
|
||||
Reference in New Issue
Block a user