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): remove landing page from sidebar

Brendan O'Learyfd52bbccc2bd
diff --git a/docs/lib/home-navigation.ts b/docs/lib/home-navigation.ts
index b87ca7451..dfb4fac2d 100644
--- a/docs/lib/home-navigation.ts
+++ b/docs/lib/home-navigation.ts
@@ -36,7 +36,6 @@ interface DocsProductConfig {
}
const SHARED_SIDEBAR_ITEMS = [
- { type: 'page', url: '/docs', label: 'Choose a product' },
{ type: 'folder', path: 'security', label: 'Security and data' },
] as const satisfies readonly ProductSidebarItem[];
diff --git a/docs/tests/static/product-navigation.test.ts b/docs/tests/static/product-navigation.test.ts
index 95e82206d..4ffc8dcb2 100644
--- a/docs/tests/static/product-navigation.test.ts
+++ b/docs/tests/static/product-navigation.test.ts
@@ -90,7 +90,7 @@ describe('Docs product navigation', () => {
expect(globalCss).toContain('@keyframes docs-product-fade-out');
});
- test('builds audience-specific trees and keeps shared pages in both', () => {
+ test('builds audience-specific trees and keeps shared resources in both', () => {
const forYouTree = buildProductPageTree(source.pageTree, 'for-you');
const platformTree = buildProductPageTree(source.pageTree, 'platform');
const forYouUrls = pageTreeUrls(forYouTree);
@@ -115,7 +115,10 @@ describe('Docs product navigation', () => {
}
expect(platformUrls).not.toContain('/docs/agent-plugins');
- for (const sharedUrl of ['/docs', '/docs/security/overview', '/docs/security/data-retention']) {
+ expect(forYouUrls).not.toContain('/docs');
+ expect(platformUrls).not.toContain('/docs');
+
+ for (const sharedUrl of ['/docs/security/overview', '/docs/security/data-retention']) {
expect(forYouUrls).toContain(sharedUrl);
expect(platformUrls).toContain(sharedUrl);
}