feat(docs): fix build issues, add external links

This commit is contained in:
rzmk 2025-12-02 20:30:37 -05:00
parent 0fdbdd4d1c
commit 100165ec29
5 changed files with 52 additions and 11 deletions

View file

@ -7,6 +7,7 @@ import { docs } from "@/.source";
export const source = loader({
baseUrl: "/docs",
source: docs.toFumadocsSource(),
// @ts-expect-error
plugins: [lucideIconsPlugin(), openapiPlugin()],
});
@ -20,6 +21,7 @@ export function getPageImage(page: InferPageType<typeof source>) {
}
export async function getLLMText(page: InferPageType<typeof source>) {
// @ts-expect-error
const processed = await page.data.getText("processed");
return `# ${page.data.title} (${page.url})