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.

Merge origin/next into fix/steps-md-formatting-v2

Sushmithamalleshaa1a0d4892f4
diff --cc docs/lib/source.ts
index 9ea642b3a,6acf28741..bcf2d2111
--- a/docs/lib/source.ts
+++ b/docs/lib/source.ts
@@@ -18,11 -18,11 +18,26 @@@ let _referenceSource: any = null
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let _openapiPagesPromise: Promise<any> | null = null;
++/**
++ * Convert camelCase/PascalCase to kebab-case for URL compatibility
++ * This matches the old Fern docs URL format (e.g., getTools -> get-tools)
++ */
++function toKebabCase(name: string): string {
++ return name
++ .replace(/([a-z])([A-Z])/g, '$1-$2')
++ .replace(/([A-Z]+)([A-Z][a-z])/g, '$1-$2')
++ .toLowerCase()
++ .replace(/[\s_]+/g, '-')
++ .replace(/-+/g, '-')
++ .replace(/^-|-$/g, '');
++}
++
async function getOpenapiPages() {
if (!_openapiPagesPromise) {
_openapiPagesPromise = openapiSource(openapi, {
groupBy: 'tag',
baseDir: 'api-reference',
++ slugify: toKebabCase,
});
}
return _openapiPagesPromise;