feat: support Alibaba & Apache dubbo service

This commit is contained in:
ReaJason
2026-04-26 13:53:20 +08:00
parent 0ea0aea4ec
commit fbca58878a
35 changed files with 1715 additions and 409 deletions
+15 -15
View File
@@ -1,17 +1,17 @@
import type { Route } from './+types/mdx';
import { getLLMText, source } from '@/lib/source';
import type { Route } from "./+types/mdx";
import { getLLMText, source } from "@/lib/source";
export async function loader({ params }: Route.LoaderArgs) {
const slugs = params['*'].split('/').filter((v) => v.length > 0);
// remove the appended "content.md"
slugs.pop();
const page = source.getPage(slugs);
if (!page) {
return new Response('not found', { status: 404 });
}
return new Response(await getLLMText(page), {
headers: {
'Content-Type': 'text/markdown; charset=utf-8',
},
});
}
const slugs = params["*"].split("/").filter((v) => v.length > 0);
// remove the appended "content.md"
slugs.pop();
const page = source.getPage(slugs);
if (!page) {
return new Response("not found", { status: 404 });
}
return new Response(await getLLMText(page), {
headers: {
"Content-Type": "text/markdown; charset=utf-8",
},
});
}