feat(docs): improve search metadata and AI-readable documentation

This commit is contained in:
t8y2 committed 2026-09-22 18:10:07 +08:00
1 parent 25a36deec9
commit 8ffdbb2950
23 files changed
+563 -244

No files matched your search

+10
View File
@@ -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" } });
}