diff --git a/.ci-config.json b/.ci-config.json index 6aff884ffc49..a68d381c8226 100644 --- a/.ci-config.json +++ b/.ci-config.json @@ -89,7 +89,7 @@ "phases": [ "build:module", "help:module", - "example:module" + "help-example:module" ] }, { diff --git a/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 b/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 index ef2d69283e9d..7312d01607eb 100644 --- a/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 +++ b/tools/StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 @@ -72,7 +72,7 @@ if ($PSCmdlet.ParameterSetName -eq "Markdown") { } foreach ($_ in Get-ChildItem $MarkdownPath -Recurse:$Recurse) { # Filter the .md of overview in "\help\" - if ((Get-Item -Path $_.FullName).Directory.Name -eq "help" -and $_.FullName -cmatch ".*\.md" -and $_.BaseName -cmatch "^[A-Z][a-z]+-([A-Z][a-z0-9]*)+$") { + if (((Get-Item -Path $_.FullName).Directory.Name -eq "help" -or (Get-Item -Path $_.FullName).Directory.Name -eq "docs") -and $_.FullName -cmatch ".*\.md" -and $_.BaseName -cmatch "^[A-Z][a-z]+-([A-Z][a-z0-9]*)+$") { if ((Get-Item -Path $_.FullName).Directory.Parent.Name -eq "netcoreapp3.1") { continue }