docs: add guides (#258)

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-12-15 10:19:16 +01:00
committed by GitHub
parent 28692d82ae
commit 3d8a3e8997
31 changed files with 4491 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ import { fileURLToPath } from 'node:url';
import {
articleCollection,
docs,
guideCollection,
pageCollection,
} from 'fumadocs-mdx:collections/server';
import { type InferPageType, loader } from 'fumadocs-core/source';
@@ -29,6 +30,12 @@ export const pageSource = loader({
source: toFumadocsSource(pageCollection, []),
});
export const guideSource = loader({
baseUrl: '/guides',
source: toFumadocsSource(guideCollection, []),
plugins: [lucideIconsPlugin()],
});
export function getPageImage(page: InferPageType<typeof source>) {
const segments = [...page.slugs, 'image.png'];