leon-ai--leon
12 行
312 B
TypeScript
12 行
312 B
TypeScript
import type { InferPageType } from 'fumadocs-core/source'
|
|
|
|
import { source } from '@/lib/source'
|
|
|
|
export async function getLLMText(
|
|
page: InferPageType<typeof source>
|
|
): Promise<string> {
|
|
const processed = await page.data.getText('processed')
|
|
|
|
return `# ${page.data.title} (${page.url})\n\n${processed}`
|
|
}
|