项目文件夹

文件
2026-05-04 08:44:15 +08:00

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}`
}