Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Fix duplicate title/description in TypeScript SDK docs

Sushmithamallesha8d8bbfcbd91
diff --git a/fumadocs/content/reference/sdk-reference/typescript/auth-configs.mdx b/fumadocs/content/reference/sdk-reference/typescript/auth-configs.mdx
index 21e332724..9f1a42f07 100644
--- a/fumadocs/content/reference/sdk-reference/typescript/auth-configs.mdx
+++ b/fumadocs/content/reference/sdk-reference/typescript/auth-configs.mdx
@@ -1,15 +1,8 @@
---
title: AuthConfigs
-description: AuthConfigs class
+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.
---
-# AuthConfigs
-
-AuthConfigs class
-
-This class is used to manage authentication configurations in the Composio SDK.
-Auth configs are used to configure authentication providers and settings.
-
## Usage
Access this class through the `composio.authConfigs` property:
diff --git a/fumadocs/content/reference/sdk-reference/typescript/composio.mdx b/fumadocs/content/reference/sdk-reference/typescript/composio.mdx
index 74547e73b..d89028c2c 100644
--- a/fumadocs/content/reference/sdk-reference/typescript/composio.mdx
+++ b/fumadocs/content/reference/sdk-reference/typescript/composio.mdx
@@ -1,13 +1,8 @@
---
title: Composio
-description: This is the core class for Composio.
+description: This is the core class for Composio. It is used to initialize the Composio SDK and provide a global configuration.
---
-# Composio
-
-This is the core class for Composio.
-It is used to initialize the Composio SDK and provide a global configuration.
-
## Constructor
### constructor()
diff --git a/fumadocs/content/reference/sdk-reference/typescript/connected-accounts.mdx b/fumadocs/content/reference/sdk-reference/typescript/connected-accounts.mdx
index aff22eb93..5f9b9191d 100644
--- a/fumadocs/content/reference/sdk-reference/typescript/connected-accounts.mdx
+++ b/fumadocs/content/reference/sdk-reference/typescript/connected-accounts.mdx
@@ -1,15 +1,8 @@
---
title: ConnectedAccounts
-description: ConnectedAccounts class
+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.
---
-# ConnectedAccounts
-
-ConnectedAccounts class
-
-This class is used to manage connected accounts in the Composio SDK.
-Connected accounts are used to authenticate with third-party services.
-
## Usage
Access this class through the `composio.connectedAccounts` property:
diff --git a/fumadocs/content/reference/sdk-reference/typescript/index.mdx b/fumadocs/content/reference/sdk-reference/typescript/index.mdx
index 54da16a90..b52a31549 100644
--- a/fumadocs/content/reference/sdk-reference/typescript/index.mdx
+++ b/fumadocs/content/reference/sdk-reference/typescript/index.mdx
@@ -1,12 +1,8 @@
---
title: TypeScript SDK Reference
-description: API reference for the Composio TypeScript SDK
+description: Complete API reference for the Composio TypeScript SDK (@composio/core).
---
-# TypeScript SDK Reference
-
-Complete API reference for `@composio/core`.
-
## Installation
<Tabs groupId="package-manager" items={['npm', 'pnpm', 'yarn', 'bun']} persist>
diff --git a/fumadocs/content/reference/sdk-reference/typescript/toolkits.mdx b/fumadocs/content/reference/sdk-reference/typescript/toolkits.mdx
index 8898cedb4..27ee23aa8 100644
--- a/fumadocs/content/reference/sdk-reference/typescript/toolkits.mdx
+++ b/fumadocs/content/reference/sdk-reference/typescript/toolkits.mdx
@@ -1,15 +1,8 @@
---
title: Toolkits
-description: Toolkits class
+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.
---
-# Toolkits
-
-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.
-
## Usage
Access this class through the `composio.toolkits` property:
diff --git a/fumadocs/content/reference/sdk-reference/typescript/tools.mdx b/fumadocs/content/reference/sdk-reference/typescript/tools.mdx
index 6726fa6c7..12f4bd6f4 100644
--- a/fumadocs/content/reference/sdk-reference/typescript/tools.mdx
+++ b/fumadocs/content/reference/sdk-reference/typescript/tools.mdx
@@ -1,13 +1,8 @@
---
title: Tools
-description: This class is used to manage tools in the Composio SDK.
+description: This class is used to manage tools in the Composio SDK. It provides methods to list, get, and execute tools.
---
-# Tools
-
-This class is used to manage tools in the Composio SDK.
-It provides methods to list, get, and execute tools.
-
## Usage
Access this class through the `composio.tools` property:
diff --git a/fumadocs/content/reference/sdk-reference/typescript/triggers.mdx b/fumadocs/content/reference/sdk-reference/typescript/triggers.mdx
index 0999f2217..1958155ed 100644
--- a/fumadocs/content/reference/sdk-reference/typescript/triggers.mdx
+++ b/fumadocs/content/reference/sdk-reference/typescript/triggers.mdx
@@ -3,10 +3,6 @@ title: Triggers
description: Trigger (Instance) class
---
-# Triggers
-
-Trigger (Instance) class
-
## Usage
Access this class through the `composio.triggers` property:
diff --git a/ts/packages/core/scripts/generate-docs.ts b/ts/packages/core/scripts/generate-docs.ts
index 24c8f4140..c2af05ac6 100644
--- a/ts/packages/core/scripts/generate-docs.ts
+++ b/ts/packages/core/scripts/generate-docs.ts
@@ -522,22 +522,19 @@ function generateMethodMdx(method: MethodDoc): string {
function generateClassMdx(classDoc: ClassDoc): string {
const lines: string[] = [];
- // Frontmatter
+ // Build full description for frontmatter (first sentence + additional context)
+ const fullDescription = classDoc.description
+ ? classDoc.description.replace(/\n/g, ' ').trim()
+ : `${classDoc.name} class reference`;
+
+ // Frontmatter - fumadocs renders title and description automatically
lines.push('---');
lines.push(`title: ${classDoc.name}`);
- lines.push(
- `description: ${classDoc.description.split('\n')[0] || `${classDoc.name} class reference`}`
- );
+ lines.push(`description: ${fullDescription}`);
lines.push('---');
lines.push('');
- // Class description
- lines.push(`# ${classDoc.name}`);
- lines.push('');
- if (classDoc.description) {
- lines.push(classDoc.description);
- lines.push('');
- }
+ // Content starts directly with Constructor or Usage (no duplicate title/description)
// Constructor - only show for user-instantiated classes
if (classDoc.constructor && USER_INSTANTIATED_CLASSES.has(classDoc.name)) {
@@ -796,13 +793,9 @@ async function main() {
const indexContent = `---
title: TypeScript SDK Reference
-description: API reference for the Composio TypeScript SDK
+description: Complete API reference for the Composio TypeScript SDK (@composio/core).
---
-# TypeScript SDK Reference
-
-Complete API reference for \`@composio/core\`.
-
## Installation
<Tabs groupId="package-manager" items={['npm', 'pnpm', 'yarn', 'bun']} persist>