This commit is contained in:
DESKTOP-RTLN3BA\$punk 2026-02-26 18:25:05 -08:00
commit 6f4bf11a32
26 changed files with 473 additions and 562 deletions

View file

@ -1,7 +1,13 @@
import { loader } from "fumadocs-core/source";
import { docs } from "@/.source/server";
import { icons } from "lucide-react";
import { createElement } from "react";
export const source = loader({
baseUrl: "/docs",
source: docs.toFumadocsSource(),
icon(icon) {
if (icon && icon in icons)
return createElement(icons[icon as keyof typeof icons]);
},
});