Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 1366 (#18398)
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 <[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]>
  • Loading branch information
4 people authored Feb 4, 2021
1 parent e0fd1cd commit 4b8da42
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 4b8da42

Please sign in to comment.