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, 17:00 UTC
home layout added
Sushmithamallesh committed
Dec 29, 2025 at 02:31 UTC
28de245fbb91bf4421c316f37de605d71ee2287a
4 files changed
+47
-16
fumadocs/app/(home)/docs/[[...slug]]/page.tsx
renamed
fumadocs/app/(home)/docs/layout.tsx
renamed
+7
-2
@@ -1,10 +1,15 @@
1
import { source } from '@/lib/source';
2
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
3
-import { baseOptions } from '@/lib/layout.shared';
3
4
export default function Layout({ children }: LayoutProps<'/docs'>) {
5
return (
7
- <DocsLayout tree={source.pageTree} {...baseOptions()}>
6
+ <DocsLayout
7
+ tree={source.pageTree}
8
+ nav={{ enabled: false }}
9
+ searchToggle={{ enabled: false }}
10
+ sidebar={{ collapsible: false, footer: null }}
11
+ themeSwitch={{ enabled: false }}
12
+ >
13
{children}
14
</DocsLayout>
15
);
fumadocs/app/global.css
+17
-14
@@ -126,28 +126,31 @@ a:focus-visible {
126
}
127
128
/* ==========================================================================
129
- Navigation
129
+ Navigation - HomeLayout + DocsLayout nested structure
130
========================================================================== */
131
132
-#nd-sidebar,
133
-#nd-sidebar-mobile {
132
+#nd-home-layout {
133
+ --fd-layout-width: 100%;
134
+}
135
+
136
+#nd-sidebar {
137
+ position: sticky;
138
+ top: 3.5rem;
139
+ height: calc(100vh - 3.5rem);
140
background-color: var(--composio-sidebar);
141
}
142
137
-html body [data-active="true"] {
138
- color: var(--composio-orange);
139
- background: transparent;
143
+#nd-sidebar > div:first-child {
144
+ padding-top: 0;
145
}
146
142
-/* ==========================================================================
143
- Page Layout
144
- ========================================================================== */
147
+#nd-sidebar-mobile {
148
+ background-color: var(--composio-sidebar);
149
+}
150
146
-/* Reduce excessive top padding on large screens */
147
-@media (min-width: 1280px) {
148
- #nd-page {
149
- padding-top: 2rem;
150
- }
151
+[data-active="true"] {
152
+ color: var(--composio-orange);
153
+ background: transparent;
154
}
155
156
/* ==========================================================================
fumadocs/lib/layout.shared.tsx
+23
@@ -33,5 +33,28 @@ export function baseOptions(): BaseLayoutProps {
33
title: <ComposioLogo />,
34
transparentMode: 'top',
35
},
36
+ links: [
37
+ {
38
+ text: 'Guide',
39
+ url: '/docs',
40
+ active: 'nested-url',
41
+ },
42
+ {
43
+ text: 'Tool Router',
44
+ url: '/tool-router',
45
+ },
46
+ {
47
+ text: 'Reference',
48
+ url: '/reference',
49
+ },
50
+ {
51
+ text: 'Examples',
52
+ url: '/examples',
53
+ },
54
+ {
55
+ text: 'Playground',
56
+ url: '/playground',
57
+ },
58
+ ],
59
};
60
}