From b7f9a797b84a40b8009b5490534e0d301cd7e721 Mon Sep 17 00:00:00 2001 From: Steven Hicks Date: Thu, 19 Dec 2024 14:52:35 -0600 Subject: [PATCH] fix: update badge removal regex and regen vNext API docs to scrub the duplicate badges --- api/remove-duplicate-version-badge.js | 2 +- .../administration-api-self-managed.info.mdx | 7 ------- .../specifications/camunda-8-rest-api.info.mdx | 7 ------- .../operate-api/specifications/operate-public-api.info.mdx | 7 ------- .../specifications/tasklist-rest-api.info.mdx | 7 ------- 5 files changed, 1 insertion(+), 29 deletions(-) diff --git a/api/remove-duplicate-version-badge.js b/api/remove-duplicate-version-badge.js index 5f30a2deb49..60efc46963b 100644 --- a/api/remove-duplicate-version-badge.js +++ b/api/remove-duplicate-version-badge.js @@ -6,7 +6,7 @@ function removeDuplicateVersionBadge(generatedInfoFilePath) { console.log("removing duplicate version badge..."); replace.sync({ files: generatedInfoFilePath, - from: /^.*Version: .*$/m, + from: /]*\s*children=\{"Version: [^"]*"\}\s*>\n<\/span>\n/m, to: "", }); } diff --git a/docs/apis-tools/administration-sm-api/specifications/administration-api-self-managed.info.mdx b/docs/apis-tools/administration-sm-api/specifications/administration-api-self-managed.info.mdx index cb8cff2d4a1..68db1be250d 100644 --- a/docs/apis-tools/administration-sm-api/specifications/administration-api-self-managed.info.mdx +++ b/docs/apis-tools/administration-sm-api/specifications/administration-api-self-managed.info.mdx @@ -14,13 +14,6 @@ import SchemaTabs from "@theme/SchemaTabs"; import TabItem from "@theme/TabItem"; import Export from "@theme/ApiExplorer/Export"; - - - - - - - - - - - - -