We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfaa36b commit df4a2b7Copy full SHA for df4a2b7
tools/HelpGeneration/HelpGeneration.psm1
@@ -92,7 +92,15 @@ function Test-AzMarkdownHelp
92
$Exceptions = Import-Csv "$SuppressedExceptionsPath\ValidateHelpIssues.csv"
93
[String[]]$errors = @()
94
$MarkdownFiles = Get-ChildItem -Path $HelpFolder -Filter "*.md"
95
- $ModuleName = ($MarkdownFiles | where { $_.Name -notlike "*-*" }).Name -replace ".md",""
+ $HelpFolderPath = $HelpFolder.FullName.Replace("\", "/")
96
+ if ($HelpFolderPath -match "/artifacts/")
97
+ {
98
+ $ModuleName = $HelpFolderPath.split('/artifacts/')[1].split('/')[1]
99
+ }
100
+ else
101
102
+ $ModuleName = "Az." + $HelpFolderPath.split('src/')[1].split('/')[0]
103
104
foreach ($file in $MarkdownFiles)
105
{
106
# Ignore the module page
0 commit comments