Skip to content

Commit

Permalink
Prepare for release v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhaopudark committed Sep 12, 2023
1 parent 8a69191 commit b05961b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build_for_APIs_docs.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$ErrorActionPreference = 'Stop'
Remove-Module PSComputerManagementZp -Force -ErrorAction SilentlyContinue
Remove-Module platyPS -Force -ErrorAction SilentlyContinue
Install-Module platyPS

Import-Module "${PSScriptRoot}\Module\PSComputerManagementZp.psm1" -Force

New-MarkdownHelp -Module PSComputerManagementZp -OutputFolder "${PSScriptRoot}\Docs\APIs" -Force

foreach ($item in Get-Item "${PSScriptRoot}\Docs\APIs\*.md"){
$fileContent = Get-Content -Path $item -Raw
$fileContent = $fileContent -replace '\\`', '`'
$fileContent = $fileContent -replace '\\\[', '['
$fileContent = $fileContent -replace '\\\]', ']'
$fileContent = $fileContent -replace '\[\[', '['
$fileContent = $fileContent -replace '\]\(\)', ''
Set-Content -Path $item -Value $fileContent
}

Remove-Module PSComputerManagementZp -Force -ErrorAction SilentlyContinue
Remove-Module platyPS -Force -ErrorAction SilentlyContinue

0 comments on commit b05961b

Please sign in to comment.