Skip to content

Commit a3b0b06

Browse files
committed
fix: limit tags addition in policies
1 parent e500e5f commit a3b0b06

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

docs/projects/fortSphere/policies.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,5 @@ slug: /fortSphere/policies
66

77
Here you can find an updated list with all the policies available in the latest version:
88
<!-- LIST:START -->
9-
<!-- LIST:START -->
109
- Restrict Repository Creation ([restrictRepoCreationGitHub](/docs/policies/restrictRepoCreationGitHub))
11-
<!-- LIST:END -->
12-
<!-- LIST:END -->
13-
<!-- LIST:END -->
14-
<!-- LIST:END -->
15-
<!-- LIST:END -->
1610
<!-- LIST:END -->

scripts/populate-policies.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,16 +69,13 @@ const policiesList = policies.map((policy) => {
6969
return `- ${policy.title} ([${policy.name}](/docs/policies/${policy.name}))`
7070
}).join('\n')
7171

72-
const policiesListContent = `${listStartTag}
73-
${policiesList}
74-
${listEndTag}`
7572

7673
const policiesListDestination = path.join(process.cwd(), 'docs/projects/fortSphere/policies.md')
7774
policiesListFileContent = readFileSync(policiesListDestination, 'utf8')
7875

7976
policiesListFileContent = updateOrCreateSegment({
8077
original: policiesListFileContent,
81-
replacementSegment: policiesListContent,
78+
replacementSegment: policiesList,
8279
startTag: listStartTag,
8380
endTag: listEndTag
8481
})

0 commit comments

Comments
 (0)