mirror of
https://github.com/dathere/ckanaction.git
synced 2025-12-19 08:49:26 +00:00
feat(docs): fix build issues, add external links
This commit is contained in:
parent
0fdbdd4d1c
commit
100165ec29
5 changed files with 52 additions and 11 deletions
|
|
@ -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})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue