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): clean up mobile nav and sidebar options
- Use Fumadocs default mobile subnav instead of custom component - Enable nav for all docs layouts (tool-router, reference, examples) - Disable sidebar tabs and theme switch - Disable duplicate search toggle in docs subnav Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 19, 2026 at 01:45 UTC
06fb93370c713c35c5fb66bcaa35ebfe79805d09
3 files changed
+6
-19
docs/app/(home)/docs/layout.tsx
+3
-17
@@ -1,8 +1,5 @@
1
import { source } from '@/lib/source';
2
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
3
-import { SidebarTrigger } from 'fumadocs-ui/components/sidebar/base';
4
-import { Menu } from 'lucide-react';
5
-
3
// Insert changelog into page tree at correct position (after capabilities, before Tools and Triggers)
4
const changelogPage = { type: 'page' as const, name: 'Changelog', url: '/docs/changelog' };
5
const pageTree = {
@@ -14,25 +11,14 @@ const pageTree = {
11
) as typeof source.pageTree.children,
12
};
13
17
-// Minimal mobile header - only shows sidebar trigger, hidden on desktop
18
-function MobileSidebarNav() {
19
- return (
20
- <header className="sticky top-14 z-30 flex items-center h-12 px-4 border-b bg-fd-background/80 backdrop-blur-sm md:hidden">
21
- <SidebarTrigger className="p-2 -ml-2 rounded-md hover:bg-fd-accent">
22
- <Menu className="size-5" />
23
- </SidebarTrigger>
24
- </header>
25
- );
26
-}
27
-
14
export default function Layout({ children }: LayoutProps<'/docs'>) {
15
return (
16
<DocsLayout
17
tree={pageTree}
32
- nav={{ enabled: true, title: null, component: <MobileSidebarNav /> }}
33
- searchToggle={{ enabled: false }}
34
- sidebar={{ collapsible: false, footer: null }}
18
+ nav={{ enabled: true, title: null }}
19
+ sidebar={{ collapsible: false, footer: null, tabs: false }}
20
themeSwitch={{ enabled: false }}
21
+ searchToggle={{ enabled: false }}
22
>
23
{children}
24
</DocsLayout>
docs/app/global.css
+1
@@ -483,6 +483,7 @@ nav a[href*="app.composio"]:focus-visible {
483
--color-fd-primary: var(--composio-orange);
484
}
485
486
+
487
@layer base {
488
* {
489
@apply border-border outline-ring/50;
docs/lib/create-docs-layout.tsx
+2
-2
@@ -9,9 +9,9 @@ export function createDocsLayout(source: Source) {
9
return (
10
<DocsLayout
11
tree={source.pageTree}
12
- nav={{ enabled: false, title: null }}
12
+ nav={{ enabled: true, title: null }}
13
searchToggle={{ enabled: false }}
14
- sidebar={{ collapsible: false, footer: null }}
14
+ sidebar={{ collapsible: false, footer: null, tabs: false }}
15
themeSwitch={{ enabled: false }}
16
>
17
{children}