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

View File

@@ -1,9 +1,13 @@
import { map } from "@/.map";
import { docs, meta, changelog as _changelog } from "@/.source";
import { createMDXSource } from "fumadocs-mdx";
import { loader } from "fumadocs-core/source";
export const { getPage, getPages, pageTree } = loader({
export const source = loader({
baseUrl: "/docs",
rootDir: "docs",
source: createMDXSource(map),
source: createMDXSource(docs, meta),
});
export const changelog = loader({
baseUrl: "/changelog",
source: createMDXSource(_changelog, meta),
});