@devries-cameron20 / composio-1 / commits / 0026d50f9
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.

docs: pin Changelog directly under Overview in API reference sidebar (#3595)

## What Move the **Changelog** entry in the API Reference sidebar so it sits **immediately below Overview** (second item from the top), instead of after **Errors**. ## Why Requested placement — Changelog should be pinned right under Overview at the top of the Reference nav for visibility. ## How The Changelog node is injected programmatically in `app/(home)/reference/(v31)/layout.tsx` (it's not a `meta.json` page). Previously it was inserted at `errorsIdx + 1`; now it's inserted at `overviewIdx + 1`, with a safe fallback to position 1 if "Overview" isn't found. Before: `Overview → Authentication → Rate Limits → Errors → Changelog → API Reference → …` After: `Overview → Changelog → Authentication → Rate Limits → Errors → API Reference → …` Only affects the v3.1 (default) Reference layout; the v3 layout doesn't inject a Changelog node. ## Verification - `bun run types:check` passes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

palash-c committed Jun 17, 2026 at 19:31 UTC 0026d50f94687726e7e7e6e3a40595cdf9970bb3
1 file changed +4 -3
docs/app/(home)/reference/(v31)/layout.tsx
+4 -3
@@ -7,10 +7,11 @@ export default async function Layout({ children }: { children: ReactNode }) {
7 const source = await getReferenceSource();
8 const tree = prepareTree(source.pageTree, '3.1');
9 const changelogPage = { type: 'page' as const, name: 'Changelog', url: '/reference/changelog' };
10 - const errorsIdx = tree.children.findIndex(
11 - (child: { type: string; name?: string }) => child.type === 'page' && child.name === 'Errors'
10 + // Pin Changelog directly beneath Overview (the first/top entry) in the sidebar.
11 + const overviewIdx = tree.children.findIndex(
12 + (child: { type: string; name?: string }) => child.type === 'page' && child.name === 'Overview'
13 );
13 - const insertIdx = errorsIdx === -1 ? Math.min(4, tree.children.length) : errorsIdx + 1;
14 + const insertIdx = overviewIdx === -1 ? Math.min(1, tree.children.length) : overviewIdx + 1;
15 const pageTree = {
16 ...tree,
17 children: [