mirror of
https://github.com/dathere/ckanaction.git
synced 2025-12-19 08:49:26 +00:00
10 lines
297 B
TypeScript
10 lines
297 B
TypeScript
import type { InferPageType } from "fumadocs-core/source";
|
|
import type { source } from "@/lib/source";
|
|
|
|
export async function getLLMText(page: InferPageType<typeof source>) {
|
|
const processed = await page.data.getText("processed");
|
|
|
|
return `# ${page.data.title} (${page.url})
|
|
|
|
${processed}`;
|
|
}
|