From a3b0b06abdceb65ee94daea4c990aa36d2d73876 Mon Sep 17 00:00:00 2001 From: Ulises Gascon Date: Mon, 23 Dec 2024 11:25:54 +0100 Subject: [PATCH] fix: limit tags addition in policies --- docs/projects/fortSphere/policies.md | 6 ------ scripts/populate-policies.js | 5 +---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/docs/projects/fortSphere/policies.md b/docs/projects/fortSphere/policies.md index 5eaecc2..c0a2c51 100644 --- a/docs/projects/fortSphere/policies.md +++ b/docs/projects/fortSphere/policies.md @@ -6,11 +6,5 @@ slug: /fortSphere/policies Here you can find an updated list with all the policies available in the latest version: - - Restrict Repository Creation ([restrictRepoCreationGitHub](/docs/policies/restrictRepoCreationGitHub)) - - - - - \ No newline at end of file diff --git a/scripts/populate-policies.js b/scripts/populate-policies.js index 11230da..cae6142 100644 --- a/scripts/populate-policies.js +++ b/scripts/populate-policies.js @@ -69,16 +69,13 @@ const policiesList = policies.map((policy) => { return `- ${policy.title} ([${policy.name}](/docs/policies/${policy.name}))` }).join('\n') -const policiesListContent = `${listStartTag} -${policiesList} -${listEndTag}` const policiesListDestination = path.join(process.cwd(), 'docs/projects/fortSphere/policies.md') policiesListFileContent = readFileSync(policiesListDestination, 'utf8') policiesListFileContent = updateOrCreateSegment({ original: policiesListFileContent, - replacementSegment: policiesListContent, + replacementSegment: policiesList, startTag: listStartTag, endTag: listEndTag })