Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 1366 (#16506)
Browse files Browse the repository at this point in the history
* Scan all duplicate artifacts which set hide to true

* Update eng/common/docgeneration/Generate-DocIndex.ps1

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>

* Update Generate-DocIndex.ps1

Co-authored-by: Sima Zhu <sizhu@microsoft.com>
Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
  • Loading branch information
4 people authored Feb 4, 2021
1 parent 05054a6 commit 481383f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions eng/common/docgeneration/Generate-DocIndex.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 481383f

Please sign in to comment.