mirror of
https://github.com/dathere/ckanaction.git
synced 2026-07-05 17:12:19 +00:00
docs: update as per docs
This commit is contained in:
parent
b745dffeda
commit
f3aa0c4e21
1 changed files with 5 additions and 4 deletions
|
|
@ -1,8 +1,9 @@
|
||||||
import type { InferPageType } from "fumadocs-core/source";
|
|
||||||
import type { source } from "@/lib/source";
|
import type { source } from "@/lib/source";
|
||||||
|
|
||||||
export async function getLLMText(page: InferPageType<typeof source>) {
|
export async function getLLMText(page: (typeof source)['$inferPage']) {
|
||||||
const processed = await page.data.getText("processed");
|
if (page.type === 'openapi') return JSON.stringify(page.data.getSchema(), null, 2);
|
||||||
|
|
||||||
|
const processed = await page.data.getText('processed');
|
||||||
|
|
||||||
return `# ${page.data.title} (${page.url})
|
return `# ${page.data.title} (${page.url})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue