Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
TypeScript agentic-aiagentsaiai-agentsaiagentsdeveloper-toolsfunction-callinggpt-4javascriptjsllmllmopsmcppythonremote-mcp-serverssetypescript
Insert changelog after Get Started section (section-based, not page-based)
Sushmithamallesh4079aecd7ef3
diff --git a/docs/app/(home)/docs/layout.tsx b/docs/app/(home)/docs/layout.tsxindex 81eb76d8f..649cf8477 100644--- a/docs/app/(home)/docs/layout.tsx+++ b/docs/app/(home)/docs/layout.tsx@@ -1,14 +1,21 @@import { source } from '@/lib/source';import { DocsLayout } from 'fumadocs-ui/layouts/docs';-// Insert changelog into page tree after Get Started section (after providers)+// Insert changelog into page tree after Get Started sectionconst changelogPage = { type: 'page' as const, name: 'Changelog', url: '/docs/changelog' };+const children = source.pageTree.children;+const getStartedIdx = children.findIndex(+ (c) => c.type === 'separator' && c.name === 'Get Started'+);+const nextSeparatorIdx = children.findIndex(+ (c, i) => i > getStartedIdx && c.type === 'separator'+);const pageTree = {...source.pageTree,- children: source.pageTree.children.flatMap((child) =>- child.type === 'page' && child.url === '/docs/providers'- ? [child, changelogPage]- : [child]- ) as typeof source.pageTree.children,+ children: [+ ...children.slice(0, nextSeparatorIdx),+ changelogPage,+ ...children.slice(nextSeparatorIdx),+ ] as typeof children,};export default function Layout({ children }: LayoutProps<'/docs'>) {