Skip to content

Commit

Permalink
fix: limit tags addition in policies
Browse files Browse the repository at this point in the history
  • Loading branch information
UlisesGascon committed Dec 23, 2024
1 parent e500e5f commit a3b0b06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
6 changes: 0 additions & 6 deletions docs/projects/fortSphere/policies.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,5 @@ slug: /fortSphere/policies

Here you can find an updated list with all the policies available in the latest version:
<!-- LIST:START -->
<!-- LIST:START -->
- Restrict Repository Creation ([restrictRepoCreationGitHub](/docs/policies/restrictRepoCreationGitHub))
<!-- LIST:END -->
<!-- LIST:END -->
<!-- LIST:END -->
<!-- LIST:END -->
<!-- LIST:END -->
<!-- LIST:END -->
5 changes: 1 addition & 4 deletions scripts/populate-policies.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
Expand Down

0 comments on commit a3b0b06

Please sign in to comment.