docs: add ktx skills.sh setup skill

This commit is contained in:
Andrey Avtomonov 2026-05-28 12:26:23 +02:00
parent 27842e14a9
commit 0c6b829b87
10 changed files with 177 additions and 246 deletions

View file

@ -3,11 +3,6 @@ import {
getLlmDocsPages,
getPageMarkdown,
} from "@/lib/llm-docs";
import {
agentSetupSlug,
isAgentSetupSlug,
readAgentSetupMarkdown,
} from "@/lib/agent-setup-markdown";
export const dynamic = "force-static";
@ -16,14 +11,6 @@ export async function GET(
props: { params: Promise<{ slug?: string[] }> },
) {
const params = await props.params;
if (isAgentSetupSlug(params.slug)) {
return new Response(await readAgentSetupMarkdown(), {
headers: {
"Content-Type": "text/markdown; charset=utf-8",
},
});
}
const page = getLlmDocsPage(params.slug);
if (!page) {
return new Response("Documentation page not found.\n", {
@ -42,8 +29,5 @@ export async function GET(
}
export function generateStaticParams() {
return [
...getLlmDocsPages().map((page) => ({ slug: page.slug })),
{ slug: [...agentSetupSlug] },
];
return getLlmDocsPages().map((page) => ({ slug: page.slug }));
}