@devries-cameron20 / composio Mirror · read-only / commits / a6ac8ee7d
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, 09:30 UTC

fix(docs): Use deeper heading level for folders vs separators in llms.txt

Separators are section headers (##), folders are sub-sections within them (###), matching the sidebar hierarchy. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

Sushmithamallesh committed Feb 11, 2026 at 12:07 UTC a6ac8ee7d9897905b84ce4fb5018c9b05c458775
1 file changed +3 -3
docs/app/llms.txt/route.ts
+3 -3
@@ -44,15 +44,15 @@ function walkPageTree(nodes: TreeNode[], depth = 2): string {
44 break;
45
46 case 'folder':
47 - // Emit folder name as a heading to preserve sidebar hierarchy
47 + // Folders are sub-sections within separator sections, so one level deeper
48 if (node.name) {
49 - lines.push(`${'#'.repeat(depth)} ${String(node.name)}`, '');
49 + lines.push(`${'#'.repeat(depth + 1)} ${String(node.name)}`, '');
50 }
51 // If folder has an index page, include it
52 if (node.index) {
53 lines.push(`- https://docs.composio.dev${node.index.url}.md`);
54 }
55 - // Recurse into children at deeper depth for hierarchy
55 + // Recurse into children
56 if (node.children.length > 0) {
57 lines.push(walkPageTree(node.children, depth + 1));
58 }