mirror of
https://github.com/dathere/ckan-devstaller.git
synced 2025-11-09 13:39:49 +00:00
feat(docs): add sidebar link icons, start info page, continue Builder
This commit is contained in:
parent
a7d2c87367
commit
3727d60786
6 changed files with 83 additions and 15 deletions
|
|
@ -1,10 +1,16 @@
|
|||
import { type InferPageType, loader } from "fumadocs-core/source";
|
||||
import { icons } from "lucide-react";
|
||||
import { createElement } from "react";
|
||||
import { docs } from "@/.source";
|
||||
|
||||
// See https://fumadocs.vercel.app/docs/headless/source-api for more info
|
||||
export const source = loader({
|
||||
baseUrl: "/docs",
|
||||
source: docs.toFumadocsSource(),
|
||||
icon(icon) {
|
||||
if (!icon) return;
|
||||
if (icon in icons) return createElement(icons[icon as keyof typeof icons]);
|
||||
},
|
||||
});
|
||||
|
||||
export function getPageImage(page: InferPageType<typeof source>) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue