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 eff8df2 commit 94327c8Copy full SHA for 94327c8
tools/Docs/HelpIndex.ps1
@@ -84,10 +84,10 @@ $HelpFolders += Get-ChildItem -Path "$ToolsRootPath/../src" -Recurse -Directory
84
# Map the name of the cmdlet to the location of the help file
85
$HelpFileMapping = @{}
86
$HelpFolders | ForEach-Object {
87
- $helpFiles = Get-ChildItem -Path $_.FullName
+ $helpFiles = Get-ChildItem -Path $_.FullName | Where-Object {-NOT ($_.Name -cmatch "README.md")}
88
$helpFiles | ForEach-Object {
89
if ($HelpFileMapping.Contains($_.Name)) {
90
- throw "Two files exist with the name $_ in $($_.FullName)"
+ throw "Two files exist with the name $($_.Name) in $($_.FullName) and $($HelpFileMapping[$_.Name])"
91
}
92
else {
93
$HelpFileMapping.Add("$($_.Name)", $_.FullName)
0 commit comments