feat: support Alibaba & Apache dubbo service

This commit is contained in:
ReaJason
2026-04-26 21:33:15 +08:00
parent 016d0d5bbe
commit d10323a054
35 changed files with 1715 additions and 409 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
import { loader, type InferPageType } from 'fumadocs-core/source';
import { docs } from 'collections/server';
import { loader, type InferPageType } from "fumadocs-core/source";
import { docs } from "collections/server";
import { lucideIconsPlugin } from "fumadocs-core/source/lucide-icons";
export const source = loader({
@@ -9,18 +9,18 @@ export const source = loader({
});
export function getPageMarkdownUrl(page: InferPageType<typeof source>) {
const segments = [...page.slugs, 'content.md'];
const segments = [...page.slugs, "content.md"];
return {
segments,
url: `/llms.mdx/docs/${segments.join('/')}`,
url: `/llms.mdx/docs/${segments.join("/")}`,
};
}
export async function getLLMText(page: InferPageType<typeof source>) {
const processed = await page.data.getText('processed');
const processed = await page.data.getText("processed");
return `# ${page.data.title} (${page.url})
${processed}`;
}
}