Files
Palmr/apps/docs/src/lib/source.ts
Daniel Luiz Alves 4b57a03311 feat: start update documentation for Palmr v2.1-beta release
- Renamed the project to "palmr-docs" and updated version to "2.1-beta" in package.json.
- Added new architecture and user management documentation for the 2.1-beta version.
- Updated meta.json files to include the new version and pages.
- Introduced a version warning component for deprecated documentation.
- Enhanced layout and styling for better user experience.
- Added new assets including logos and banners for the updated version.
2025-05-30 14:08:58 -03:00

17 lines
481 B
TypeScript

import { docs } from "@/.source";
import { loader } from "fumadocs-core/source";
import { icons } from "lucide-react";
import { createElement } from "react";
// See https://fumadocs.vercel.app/docs/headless/source-api for more info
export const source = loader({
// it assigns a URL to your pages
baseUrl: "/docs",
source: docs.toFumadocsSource(),
icon(icon) {
if (icon && icon in icons) {
return createElement(icons[icon as keyof typeof icons]);
}
},
});