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
fix(docs): Use deeper heading level for folders vs separators in llms.txt
Sushmithamallesha6ac8ee7d989
diff --git a/docs/app/llms.txt/route.ts b/docs/app/llms.txt/route.tsindex c11685530..eb5ea3c1a 100644--- a/docs/app/llms.txt/route.ts+++ b/docs/app/llms.txt/route.ts@@ -44,15 +44,15 @@ function walkPageTree(nodes: TreeNode[], depth = 2): string {break;case 'folder':- // Emit folder name as a heading to preserve sidebar hierarchy+ // Folders are sub-sections within separator sections, so one level deeperif (node.name) {- lines.push(`${'#'.repeat(depth)} ${String(node.name)}`, '');+ lines.push(`${'#'.repeat(depth + 1)} ${String(node.name)}`, '');}// If folder has an index page, include itif (node.index) {lines.push(`- https://docs.composio.dev${node.index.url}.md`);}- // Recurse into children at deeper depth for hierarchy+ // Recurse into childrenif (node.children.length > 0) {lines.push(walkPageTree(node.children, depth + 1));}