Skip to content

Commit 3d5a7be

Browse files
authored
[Eng] Fixed module help markdown index for new module (#27651)
1 parent d870cf2 commit 3d5a7be

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tools/BuildScripts/AdaptAutorestModule.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ try{
212212
if (-Not (Test-Path $helpPath)) {
213213
New-Item -Type Directory $helpPath -Force
214214
New-MarkDownHelp -Module "Az.$ModuleRootName" -OutputFolder $helpPath -AlphabeticParamsOrder -UseFullTypeName -WithModulePage -ExcludeDontShow
215+
$indexPath = Join-Path $helpPath "Az.$ModuleRootName.md"
216+
$content = Get-Content -Path $indexPath
217+
$content = $content -replace '{{ Update Download Link }}', "https://learn.microsoft.com/powershell/module/az.$($ModuleRootName.ToLower())"
218+
$content = $content -replace '{{ Please enter version of help manually \(X.X.X.X\) format }}', '1.0.0.0'
219+
$content = $content -replace '{{ Fill in the Description }}', "Microsoft Azure PowerShell: $ModuleRootName cmdlets"
220+
$content | Set-Content -Path $indexPath
215221
}
216222
Get-ChildItem $subModuleHelpPath -Filter *-*.md | Copy-Item -Destination (Join-Path $helpPath $_.Name) -Force
217223
Write-Host "Refreshing help markdown files under: $helpPath ..."

0 commit comments

Comments
 (0)