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, 15:45 UTC
Fix duplicate title/description in TypeScript SDK docs
Fumadocs automatically renders title and description from frontmatter, so the generator was creating duplicate content by also including # Title and description paragraph in the MDX body. Changes: - Remove duplicate # heading and description from generateClassMdx() - Remove duplicate heading from index template - Regenerate all TypeScript SDK docs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Jan 6, 2026 at 17:28 UTC
a8d8bbfcbd9182d7ed3f38392c1e1525e47eeccb
8 files changed
+15
-61
fumadocs/content/reference/sdk-reference/typescript/auth-configs.mdx
+1
-8
@@ -1,15 +1,8 @@
1
---
2
title: AuthConfigs
3
-description: AuthConfigs class
3
+description: AuthConfigs class This class is used to manage authentication configurations in the Composio SDK. Auth configs are used to configure authentication providers and settings.
4
---
5
6
-# AuthConfigs
7
-
8
-AuthConfigs class
9
-
10
-This class is used to manage authentication configurations in the Composio SDK.
11
-Auth configs are used to configure authentication providers and settings.
12
-
6
## Usage
7
8
Access this class through the `composio.authConfigs` property:
fumadocs/content/reference/sdk-reference/typescript/composio.mdx
+1
-6
@@ -1,13 +1,8 @@
1
---
2
title: Composio
3
-description: This is the core class for Composio.
3
+description: This is the core class for Composio. It is used to initialize the Composio SDK and provide a global configuration.
4
---
5
6
-# Composio
7
-
8
-This is the core class for Composio.
9
-It is used to initialize the Composio SDK and provide a global configuration.
10
-
6
## Constructor
7
8
### constructor()
fumadocs/content/reference/sdk-reference/typescript/connected-accounts.mdx
+1
-8
@@ -1,15 +1,8 @@
1
---
2
title: ConnectedAccounts
3
-description: ConnectedAccounts class
3
+description: ConnectedAccounts class This class is used to manage connected accounts in the Composio SDK. Connected accounts are used to authenticate with third-party services.
4
---
5
6
-# ConnectedAccounts
7
-
8
-ConnectedAccounts class
9
-
10
-This class is used to manage connected accounts in the Composio SDK.
11
-Connected accounts are used to authenticate with third-party services.
12
-
6
## Usage
7
8
Access this class through the `composio.connectedAccounts` property:
fumadocs/content/reference/sdk-reference/typescript/index.mdx
+1
-5
@@ -1,12 +1,8 @@
1
---
2
title: TypeScript SDK Reference
3
-description: API reference for the Composio TypeScript SDK
3
+description: Complete API reference for the Composio TypeScript SDK (@composio/core).
4
---
5
6
-# TypeScript SDK Reference
7
-
8
-Complete API reference for `@composio/core`.
9
-
6
## Installation
7
8
<Tabs groupId="package-manager" items={['npm', 'pnpm', 'yarn', 'bun']} persist>
fumadocs/content/reference/sdk-reference/typescript/toolkits.mdx
+1
-8
@@ -1,15 +1,8 @@
1
---
2
title: Toolkits
3
-description: Toolkits class
3
+description: Toolkits class Toolkits are a collection of tools that can be used to perform various tasks. This is similar/replacement of `apps` in the Composio API.
4
---
5
6
-# Toolkits
7
-
8
-Toolkits class
9
-
10
-Toolkits are a collection of tools that can be used to perform various tasks.
11
-This is similar/replacement of `apps` in the Composio API.
12
-
6
## Usage
7
8
Access this class through the `composio.toolkits` property:
fumadocs/content/reference/sdk-reference/typescript/tools.mdx
+1
-6
@@ -1,13 +1,8 @@
1
---
2
title: Tools
3
-description: This class is used to manage tools in the Composio SDK.
3
+description: This class is used to manage tools in the Composio SDK. It provides methods to list, get, and execute tools.
4
---
5
6
-# Tools
7
-
8
-This class is used to manage tools in the Composio SDK.
9
-It provides methods to list, get, and execute tools.
10
-
6
## Usage
7
8
Access this class through the `composio.tools` property:
fumadocs/content/reference/sdk-reference/typescript/triggers.mdx
-4
@@ -3,10 +3,6 @@ title: Triggers
3
description: Trigger (Instance) class
4
---
5
6
-# Triggers
7
-
8
-Trigger (Instance) class
9
-
6
## Usage
7
8
Access this class through the `composio.triggers` property:
ts/packages/core/scripts/generate-docs.ts
+9
-16
@@ -522,22 +522,19 @@ function generateMethodMdx(method: MethodDoc): string {
522
function generateClassMdx(classDoc: ClassDoc): string {
523
const lines: string[] = [];
524
525
- // Frontmatter
525
+ // Build full description for frontmatter (first sentence + additional context)
526
+ const fullDescription = classDoc.description
527
+ ? classDoc.description.replace(/\n/g, ' ').trim()
528
+ : `${classDoc.name} class reference`;
529
+
530
+ // Frontmatter - fumadocs renders title and description automatically
531
lines.push('---');
532
lines.push(`title: ${classDoc.name}`);
528
- lines.push(
529
- `description: ${classDoc.description.split('\n')[0] || `${classDoc.name} class reference`}`
530
- );
533
+ lines.push(`description: ${fullDescription}`);
534
lines.push('---');
535
lines.push('');
536
534
- // Class description
535
- lines.push(`# ${classDoc.name}`);
536
- lines.push('');
537
- if (classDoc.description) {
538
- lines.push(classDoc.description);
539
- lines.push('');
540
- }
537
+ // Content starts directly with Constructor or Usage (no duplicate title/description)
538
539
// Constructor - only show for user-instantiated classes
540
if (classDoc.constructor && USER_INSTANTIATED_CLASSES.has(classDoc.name)) {
@@ -796,13 +793,9 @@ async function main() {
793
794
const indexContent = `---
795
title: TypeScript SDK Reference
799
-description: API reference for the Composio TypeScript SDK
796
+description: Complete API reference for the Composio TypeScript SDK (@composio/core).
797
---
798
802
-# TypeScript SDK Reference
803
-
804
-Complete API reference for \`@composio/core\`.
805
-
799
## Installation
800
801
<Tabs groupId="package-manager" items={['npm', 'pnpm', 'yarn', 'bun']} persist>