Files
better-auth/docs/source.config.ts
Bereket Engida 9cc2e3d8ab feat: MCP plugin (#2666)
* chore: wip

* wip

* feat: mcp plugin

* wip

* chore: fix lock file

* clean up

* schema

* docs

* chore: lint

* chore: release v1.2.9-beta.1

* blog

* chore: lint
2025-05-23 12:44:51 -07:00

54 lines
922 B
TypeScript

import {
defineDocs,
defineConfig,
defineCollections,
} from "fumadocs-mdx/config";
import { z } from "zod";
import { remarkInstall } from "fumadocs-docgen";
export const docs = defineDocs({
dir: "./content/docs",
});
export const changelogCollection = defineCollections({
type: "doc",
dir: "./content/changelogs",
schema: z.object({
title: z.string(),
description: z.string(),
date: z.date(),
}),
});
export const blogCollection = defineCollections({
type: "doc",
dir: "./content/blogs",
schema: z.object({
title: z.string(),
description: z.string(),
date: z.date(),
author: z.object({
name: z.string(),
avatar: z.string(),
twitter: z.string(),
}),
image: z.string(),
tags: z.array(z.string()),
}),
});
export default defineConfig({
mdxOptions: {
remarkPlugins: [
[
remarkInstall,
{
persist: {
id: "persist-install",
},
},
],
],
},
});