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, 12:00 UTC
fix(docs): Update reference layout to use async getReferenceSource
The layout needs to use the async source that includes OpenAPI pages for the sidebar navigation to show API reference links. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
sohamganatra committed
Jan 28, 2026 at 00:36 UTC
e3fc969550d85ced513233df825611b69e888575
1 file changed
+17
-3
docs/app/(home)/reference/layout.tsx
+17
-3
@@ -1,4 +1,18 @@
1
-import { referenceSource } from '@/lib/source';
2
-import { createDocsLayout } from '@/lib/create-docs-layout';
1
+import { getReferenceSource } from '@/lib/source';
2
+import { DocsLayout } from 'fumadocs-ui/layouts/docs';
3
+import type { ReactNode } from 'react';
4
4
-export default createDocsLayout(referenceSource);
5
+export default async function Layout({ children }: { children: ReactNode }) {
6
+ const source = await getReferenceSource();
7
+ return (
8
+ <DocsLayout
9
+ tree={source.pageTree}
10
+ nav={{ enabled: true, title: null }}
11
+ searchToggle={{ enabled: false }}
12
+ sidebar={{ collapsible: false, footer: null, tabs: false }}
13
+ themeSwitch={{ enabled: false }}
14
+ >
15
+ {children}
16
+ </DocsLayout>
17
+ );
18
+}