2025-07-27 10:05:37 -07:00
|
|
|
import { loader } from "fumadocs-core/source";
|
2026-02-27 02:15:21 +05:30
|
|
|
import { icons } from "lucide-react";
|
|
|
|
|
import { createElement } from "react";
|
2026-02-27 15:45:48 -08:00
|
|
|
import { docs } from "@/.source/server";
|
2025-07-27 10:05:37 -07:00
|
|
|
|
2025-04-22 02:24:13 -07:00
|
|
|
export const source = loader({
|
2025-07-27 10:05:37 -07:00
|
|
|
baseUrl: "/docs",
|
|
|
|
|
source: docs.toFumadocsSource(),
|
2026-02-27 02:15:21 +05:30
|
|
|
icon(icon) {
|
2026-02-27 15:45:48 -08:00
|
|
|
if (icon && icon in icons) return createElement(icons[icon as keyof typeof icons]);
|
2026-02-27 02:15:21 +05:30
|
|
|
},
|
2025-07-27 10:05:37 -07:00
|
|
|
});
|