Skip to content

Commit 481383f

Browse files
azure-sdksima-zhuweshaggard
authored
Sync eng/common directory with azure-sdk-tools for PR 1366 (#16506)
* Scan all duplicate artifacts which set hide to true * Update eng/common/docgeneration/Generate-DocIndex.ps1 Co-authored-by: Wes Haggard <[email protected]> * Update Generate-DocIndex.ps1 Co-authored-by: Sima Zhu <[email protected]> Co-authored-by: Sima Zhu <[email protected]> Co-authored-by: Wes Haggard <[email protected]>
1 parent 05054a6 commit 481383f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

eng/common/docgeneration/Generate-DocIndex.ps1

+1-6
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,7 @@ function Get-TocMapping {
6565
$orderServiceMapping = @{}
6666

6767
foreach ($artifact in $artifacts) {
68-
$packageInfo = $metadata | ? {$_.Package -eq $artifact}
69-
70-
if ($packageInfo -and $packageInfo[0].Hide -eq 'true') {
71-
LogDebug "The artifact $artifact set 'Hide' to 'true'."
72-
continue
73-
}
68+
$packageInfo = $metadata | ? { $_.Package -eq $artifact -and $_.Hide -ne "true" }
7469
$serviceName = ""
7570
$displayName = ""
7671
if (!$packageInfo) {

0 commit comments

Comments
 (0)