docs: add guides (#258)
This commit is contained in:
committed by
GitHub
parent
28692d82ae
commit
3d8a3e8997
@@ -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'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user