This commit is contained in:
seb
2026-09-28 12:13:17 +02:00
parent e8e4265dc4
commit 62d46a1df3
8 changed files with 8 additions and 7 deletions

View File

@@ -202,7 +202,8 @@ function docsFileFor(apiPath, method) {
const cleaned = apiPath
.replace(/^\//, '')
.replace(/\{([^}]+)\}/g, ':$1');
.replace(/\{([^}]+)\}/g, '_$1')
.replace(/:([a-zA-Z0-9_]+)/g, '_$1');
const segments = cleaned.split('/').filter(Boolean);
if (segments.length === 0) return `${method}.md`;