[READ-ONLY] Mirror of https://github.com/flo-bit/dogumentation. Simple, minimalistic documentation template using astro flo-bit.dev/dogumentation/
0

Configure Feed

Select the types of activity you want to include in your feed.

dogumentation / src / pages / llm-full.txt.ts
469 B 16 lines
1import type { APIRoute } from "astro"; 2import config from "src/config"; 3import { getSortedDocs } from "src/utils"; 4 5const docs = await getSortedDocs(); 6 7export const GET: APIRoute = async () => { 8 return new Response( 9 `# ${config.SITE_NAME} Full Documentation\n\n${docs 10 .map((doc) => { 11 return `${doc.body}\n\n`; 12 }) 13 .join("")}`, 14 { headers: { "Content-Type": "text/plain; charset=utf-8" } } 15 ); 16};