Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

fix(docs): restore description and add graceful error handling

Sushmithamalleshc7c6c113e070
diff --git a/docs/app/(home)/docs/[[...slug]]/page.tsx b/docs/app/(home)/docs/[[...slug]]/page.tsx
index 31754a65b..339edf7b5 100644
--- a/docs/app/(home)/docs/[[...slug]]/page.tsx
+++ b/docs/app/(home)/docs/[[...slug]]/page.tsx
@@ -1,6 +1,7 @@
import { getPageImage, source } from '@/lib/source';
import {
DocsBody,
+ DocsDescription,
DocsPage,
DocsTitle,
} from 'fumadocs-ui/layouts/docs/page';
@@ -22,6 +23,7 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
return (
<DocsPage toc={data.toc} full={data.full} footer={{ enabled: false }} tableOfContentPopover={{ enabled: false }}>
<DocsTitle>{data.title}</DocsTitle>
+ <DocsDescription className="mb-2">{data.description}</DocsDescription>
<PageActions path={page.url} />
<DocsBody>
<MDX
diff --git a/docs/app/llms-full.txt/route.ts b/docs/app/llms-full.txt/route.ts
index 9fe109265..98ca6ad06 100644
--- a/docs/app/llms-full.txt/route.ts
+++ b/docs/app/llms-full.txt/route.ts
@@ -5,7 +5,16 @@ export const revalidate = false;
export async function GET() {
try {
const pages = source.getPages();
- const results = await Promise.all(pages.map(getLLMText));
+ const results = await Promise.all(
+ pages.map(async (page) => {
+ try {
+ return await getLLMText(page);
+ } catch {
+ // Graceful fallback if getText fails
+ return `# ${page.data.title} (${page.url})\n\n${page.data.description || ''}`;
+ }
+ })
+ );
return new Response(results.join('\n\n---\n\n'), {
headers: {