@devries-cameron20 / composio Mirror · read-only / commits / 4079aecd7
Fork 0

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, 14:30 UTC

Insert changelog after Get Started section (section-based, not page-based)

Sushmithamallesh committed Jan 22, 2026 at 01:17 UTC 4079aecd7ef3f205cb992aea8b37810a7a11af44
1 file changed +13 -6
docs/app/(home)/docs/layout.tsx
+13 -6
@@ -1,14 +1,21 @@
1 import { source } from '@/lib/source';
2 import { DocsLayout } from 'fumadocs-ui/layouts/docs';
3 -// Insert changelog into page tree after Get Started section (after providers)
3 +// Insert changelog into page tree after Get Started section
4 const changelogPage = { type: 'page' as const, name: 'Changelog', url: '/docs/changelog' };
5 +const children = source.pageTree.children;
6 +const getStartedIdx = children.findIndex(
7 + (c) => c.type === 'separator' && c.name === 'Get Started'
8 +);
9 +const nextSeparatorIdx = children.findIndex(
10 + (c, i) => i > getStartedIdx && c.type === 'separator'
11 +);
12 const pageTree = {
13 ...source.pageTree,
7 - children: source.pageTree.children.flatMap((child) =>
8 - child.type === 'page' && child.url === '/docs/providers'
9 - ? [child, changelogPage]
10 - : [child]
11 - ) as typeof source.pageTree.children,
14 + children: [
15 + ...children.slice(0, nextSeparatorIdx),
16 + changelogPage,
17 + ...children.slice(nextSeparatorIdx),
18 + ] as typeof children,
19 };
20
21 export default function Layout({ children }: LayoutProps<'/docs'>) {