Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 2910 (Azure#23499)
Browse files Browse the repository at this point in the history
* Read the ms.service value from csv metadata

* Update eng/common/scripts/Update-DocsMsMetadata.ps1

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

* Update eng/common/scripts/Update-DocsMsMetadata.ps1

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

* Update Update-DocsMsMetadata.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 and rakshith91 committed Apr 7, 2022
1 parent 489d667 commit fb1ad49
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions eng/common/scripts/Update-DocsMsMetadata.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,12 @@ function GetAdjustedReadmeContent($ReadmeContent, $PackageInfo, $PackageMetadata
# The $PackageMetadata could be $null if there is no associated metadata entry
# based on how the metadata CSV is filtered
$service = $PackageInfo.ServiceDirectory.ToLower()
if ($PackageMetadata -and $PackageMetadata.ServiceName) {
# Normalize service name "Key Vault" -> "keyvault"
if ($PackageMetadata -and $PackageMetadata.MSDocService) {
# Use MSDocService in csv metadata to override the service directory
# TODO: Use taxonomy for service name -- https://github.com/Azure/azure-sdk-tools/issues/1442
# probably from metadata
$service = $PackageMetadata.ServiceName.ToLower().Replace(" ", "")
$service = $PackageMetadata.MSDocService
}

Write-Host "The service of package: $service"
# Generate the release tag for use in link substitution
$tag = "$($PackageInfo.Name)_$($PackageInfo.Version)"
Write-Host "The tag of package: $tag"
Expand Down

0 comments on commit fb1ad49

Please sign in to comment.