Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 14:30 UTC
fix(docs): restore description and add graceful error handling
- Add DocsDescription back alongside PageActions - Add per-page try-catch in llms-full.txt for graceful degradation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 19, 2026 at 15:16 UTC
c7c6c113e0708cb0dd6d866536b1f7678b6a6739
2 files changed
+12
-1
docs/app/(home)/docs/[[...slug]]/page.tsx
+2
@@ -1,6 +1,7 @@
1
import { getPageImage, source } from '@/lib/source';
2
import {
3
DocsBody,
4
+ DocsDescription,
5
DocsPage,
6
DocsTitle,
7
} from 'fumadocs-ui/layouts/docs/page';
@@ -22,6 +23,7 @@ export default async function Page(props: PageProps<'/docs/[[...slug]]'>) {
23
return (
24
<DocsPage toc={data.toc} full={data.full} footer={{ enabled: false }} tableOfContentPopover={{ enabled: false }}>
25
<DocsTitle>{data.title}</DocsTitle>
26
+ <DocsDescription className="mb-2">{data.description}</DocsDescription>
27
<PageActions path={page.url} />
28
<DocsBody>
29
<MDX
docs/app/llms-full.txt/route.ts
+10
-1
@@ -5,7 +5,16 @@ export const revalidate = false;
5
export async function GET() {
6
try {
7
const pages = source.getPages();
8
- const results = await Promise.all(pages.map(getLLMText));
8
+ const results = await Promise.all(
9
+ pages.map(async (page) => {
10
+ try {
11
+ return await getLLMText(page);
12
+ } catch {
13
+ // Graceful fallback if getText fails
14
+ return `# ${page.data.title} (${page.url})\n\n${page.data.description || ''}`;
15
+ }
16
+ })
17
+ );
18
19
return new Response(results.join('\n\n---\n\n'), {
20
headers: {