feat(docs): improve search metadata and AI-readable documentation
This commit is contained in:
23 files changed
+563
-244
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import { source } from "@/lib/source";
|
||||
import { documentMarkdown } from "@/lib/llms";
|
||||
|
||||
export const dynamic = "force-static";
|
||||
|
||||
export async function GET() {
|
||||
const pages = [...source.getPages()].sort((left, right) => left.url.localeCompare(right.url, "en"));
|
||||
const documents = await Promise.all(pages.map(documentMarkdown));
|
||||
return new Response(documents.join("\n---\n\n"), { headers: { "Content-Type": "text/plain; charset=utf-8" } });
|
||||
}
|
||||
Reference in new issue
Block a user