@@ -93,7 +93,7 @@ Function Move-Generation2Master {
93
93
$sourceHelpFolder = Join-Path - Path (Join-Path - Path $SourcePath - ChildPath $submoduleDir.Name ) - ChildPath " docs"
94
94
$destHelpHolder = Join-Path - Path (Join-Path - Path $DestPath - ChildPath $ModuleName ) - ChildPath " help"
95
95
Write-Host " Copying help files from $sourceHelpFolder to $destHelpHolder " - ForegroundColor Yellow
96
- Get-ChildItem - Path $sourceHelpFolder - Filter * .md | Copy-Item - Destination $destHelpHolder
96
+ Get-ChildItem - Path $sourceHelpFolder - Filter *-* .md | Copy-Item - Destination $destHelpHolder
97
97
# Region Clean Local Modules
98
98
$LocalModulesPath = Join-Path - Path (Join-Path - Path (Join-Path - Path $DestPath - ChildPath $submoduleDir.Name ) - ChildPath ' generated' ) - ChildPath ' modules'
99
99
If (Test-Path $LocalModulesPath ) {
@@ -218,6 +218,14 @@ Function Move-Generation2Master {
218
218
Copy-Item - Path " $DestPath \$ModuleName .Autorest\help\Az.$ModuleName .md" - Destination $HelpFolder - Recurse
219
219
New-MarkdownHelp - UseFullTypeName - AlphabeticParamsOrder - Module " Az.$ModuleName " - OutputFolder $HelpFolder
220
220
}
221
+ $moduleMarkdownPath = " $DestPath \$ModuleName$Psd1FolderPostfix \help\Az.$ModuleName .md"
222
+ $moduleMarkdownContent = Get-Content - Path $moduleMarkdownPath
223
+ $moduleMarkdownContent = $moduleMarkdownContent -replace ' {{ Update Module Guid }}' , (New-Guid ).Guid
224
+ $moduleMarkdownContent = $moduleMarkdownContent -replace ' {{ Update Download Link }}' , " https://learn.microsoft.com/powershell/module/az.$ ( $ModuleName.ToLower ()) "
225
+ $moduleMarkdownContent = $moduleMarkdownContent -replace ' {{ Update Help Version }}' , ' 1.0.0.0'
226
+ $moduleMarkdownContent = $moduleMarkdownContent -replace ' {{ Update Locale }}' , ' en-US'
227
+ $moduleMarkdownContent = $moduleMarkdownContent -replace ' {{ Fill in the Description }}' , " Microsoft Azure PowerShell: $ModuleName cmdlets"
228
+ $moduleMarkdownContent | Set-Content - Path $moduleMarkdownPath
221
229
} - ArgumentList $PSScriptRoot , $ModuleName , $DestPath , $Psd1FolderPostfix
222
230
223
231
$job | Wait-Job | Receive-Job
0 commit comments