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): clean up mobile nav and sidebar options

Sushmithamallesh06fb93370c71
diff --git a/docs/app/(home)/docs/layout.tsx b/docs/app/(home)/docs/layout.tsx
index efeb5dbba..923dd2a84 100644
--- a/docs/app/(home)/docs/layout.tsx
+++ b/docs/app/(home)/docs/layout.tsx
@@ -1,8 +1,5 @@
import { source } from '@/lib/source';
import { DocsLayout } from 'fumadocs-ui/layouts/docs';
-import { SidebarTrigger } from 'fumadocs-ui/components/sidebar/base';
-import { Menu } from 'lucide-react';
-
// Insert changelog into page tree at correct position (after capabilities, before Tools and Triggers)
const changelogPage = { type: 'page' as const, name: 'Changelog', url: '/docs/changelog' };
const pageTree = {
@@ -14,25 +11,14 @@ const pageTree = {
) as typeof source.pageTree.children,
};
-// Minimal mobile header - only shows sidebar trigger, hidden on desktop
-function MobileSidebarNav() {
- return (
- <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">
- <SidebarTrigger className="p-2 -ml-2 rounded-md hover:bg-fd-accent">
- <Menu className="size-5" />
- </SidebarTrigger>
- </header>
- );
-}
-
export default function Layout({ children }: LayoutProps<'/docs'>) {
return (
<DocsLayout
tree={pageTree}
- nav={{ enabled: true, title: null, component: <MobileSidebarNav /> }}
- searchToggle={{ enabled: false }}
- sidebar={{ collapsible: false, footer: null }}
+ nav={{ enabled: true, title: null }}
+ sidebar={{ collapsible: false, footer: null, tabs: false }}
themeSwitch={{ enabled: false }}
+ searchToggle={{ enabled: false }}
>
{children}
</DocsLayout>
diff --git a/docs/app/global.css b/docs/app/global.css
index e1306a56b..147320af6 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -483,6 +483,7 @@ nav a[href*="app.composio"]:focus-visible {
--color-fd-primary: var(--composio-orange);
}
+
@layer base {
* {
@apply border-border outline-ring/50;
diff --git a/docs/lib/create-docs-layout.tsx b/docs/lib/create-docs-layout.tsx
index 116e262a8..a3de67154 100644
--- a/docs/lib/create-docs-layout.tsx
+++ b/docs/lib/create-docs-layout.tsx
@@ -9,9 +9,9 @@ export function createDocsLayout(source: Source) {
return (
<DocsLayout
tree={source.pageTree}
- nav={{ enabled: false, title: null }}
+ nav={{ enabled: true, title: null }}
searchToggle={{ enabled: false }}
- sidebar={{ collapsible: false, footer: null }}
+ sidebar={{ collapsible: false, footer: null, tabs: false }}
themeSwitch={{ enabled: false }}
>
{children}