mirror of
https://github.com/dathere/ckanaction.git
synced 2025-12-19 08:49:26 +00:00
build: update dependencies and fumadocs
This commit is contained in:
parent
100165ec29
commit
fd5ebf4af0
144 changed files with 301 additions and 431 deletions
10
docs/lib/get-llm-text.ts
Normal file
10
docs/lib/get-llm-text.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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}`;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue