mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 12:27:44 +00:00
Co-authored-by: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com> Co-authored-by: Kinfe123 <kinfishtech@gmail.com>
22 lines
572 B
TypeScript
22 lines
572 B
TypeScript
import { changelogCollection, docs, blogCollection } from "@/.source";
|
|
import { getPageTree } from "@/components/sidebar-content";
|
|
import { loader } from "fumadocs-core/source";
|
|
import { createMDXSource } from "fumadocs-mdx";
|
|
|
|
export let source = loader({
|
|
baseUrl: "/docs",
|
|
source: docs.toFumadocsSource(),
|
|
});
|
|
|
|
source = { ...source, pageTree: getPageTree() };
|
|
|
|
export const changelogs = loader({
|
|
baseUrl: "/changelogs",
|
|
source: createMDXSource(changelogCollection),
|
|
});
|
|
|
|
export const blogs = loader({
|
|
baseUrl: "/blogs",
|
|
source: createMDXSource(blogCollection),
|
|
});
|