mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-04 13:22:41 +02:00
chore: add icons to documentation metadata for improved visual representation
This commit is contained in:
parent
78dcce3e06
commit
20ebb0703f
8 changed files with 13 additions and 0 deletions
|
|
@ -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]);
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue