diff --git a/scripts/workflow/build-docs.ts b/scripts/workflow/build-docs.ts index c2faf99f9f..8aa2a39f25 100644 --- a/scripts/workflow/build-docs.ts +++ b/scripts/workflow/build-docs.ts @@ -96,8 +96,17 @@ function generateMd(lang) { } }); + const processedPaths = new Set(); + for (const realPath of realPaths) { const data = docs[category][namespace].routes[realPath]; + if (Array.isArray(data.path)) { + if (processedPaths.has(data.path[0])) { + continue; + } + processedPaths.add(data.path[0]); + } + const test = testResult.find((t) => t.title === realPath); const parsedTest = test ? {