Skip to content

Commit 068ae3a

Browse files
authored
Refresh module page for hybrid module (Azure#16558)
1 parent 6b6277e commit 068ae3a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/Gen2Master/MoveFromGeneration2Master.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ Function Move-Generation2MasterHybrid {
280280
#EndRegion
281281

282282
# Generate csproj file and add the dependency in the solution file
283-
Copy-Template -SourceName Az.ModuleName.hybrid.csproj -DestPath $DestPath -DestName "Az.$submoduleName.csproj" -RootModuleName $ModuleName -ModuleName $submoduleName
283+
Copy-Template -SourceName Az.ModuleName.hybrid.csproj -DestPath (Join-Path $DestPath $submoduleDir.Name) -DestName "Az.$submoduleName.csproj" -RootModuleName $ModuleName -ModuleName $submoduleName
284284

285285
$SolutionPath = Join-Path -Path $DestPath -ChildPath $ModuleName.sln
286286

@@ -317,6 +317,11 @@ Function Move-Generation2MasterHybrid {
317317
}
318318
New-ModuleManifest -Path $DestPsd1Path @Psd1Metadata
319319
}
320+
321+
#update module page
322+
dotnet build "$DestPath\$ModuleName.sln"
323+
Import-Module "$DestPath\..\..\artifacts\Debug\Az.$ModuleName\Az.$ModuleName.psd1"
324+
Update-MarkdownHelpModule -Path "$DestPath\$ModuleName\help" -RefreshModulePage -AlphabeticParamsOrder -UseFullTypeName -ExcludeDontShow
320325
}
321326
}
322327

0 commit comments

Comments
 (0)