From c52de0984aca2106f37974b1b32fed30c3916124 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 3 Feb 2021 23:05:56 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 1366 (#556) * Scan all duplicate artifacts which set hide to true * Update eng/common/docgeneration/Generate-DocIndex.ps1 Co-authored-by: Wes Haggard * Update Generate-DocIndex.ps1 Co-authored-by: Sima Zhu Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com> Co-authored-by: Wes Haggard --- eng/common/docgeneration/Generate-DocIndex.ps1 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/eng/common/docgeneration/Generate-DocIndex.ps1 b/eng/common/docgeneration/Generate-DocIndex.ps1 index 36194f50d..b2f6356c0 100644 --- a/eng/common/docgeneration/Generate-DocIndex.ps1 +++ b/eng/common/docgeneration/Generate-DocIndex.ps1 @@ -65,12 +65,7 @@ function Get-TocMapping { $orderServiceMapping = @{} foreach ($artifact in $artifacts) { - $packageInfo = $metadata | ? {$_.Package -eq $artifact} - - if ($packageInfo -and $packageInfo[0].Hide -eq 'true') { - LogDebug "The artifact $artifact set 'Hide' to 'true'." - continue - } + $packageInfo = $metadata | ? { $_.Package -eq $artifact -and $_.Hide -ne "true" } $serviceName = "" $displayName = "" if (!$packageInfo) {