diff --git a/eng/common/scripts/Helpers/Metadata-Helpers.ps1 b/eng/common/scripts/Helpers/Metadata-Helpers.ps1 index 51a3c599b01..c5d22ea834e 100644 --- a/eng/common/scripts/Helpers/Metadata-Helpers.ps1 +++ b/eng/common/scripts/Helpers/Metadata-Helpers.ps1 @@ -129,3 +129,7 @@ ms.service: $msService "@ return $header } + +function ServiceLevelReadmeNameStyle($serviceName) { + return $serviceName.ToLower().Replace(' ', '-').Replace('/', '-') +} \ No newline at end of file diff --git a/eng/common/scripts/Helpers/Package-Helpers.ps1 b/eng/common/scripts/Helpers/Package-Helpers.ps1 index b215d8d981e..15a1f2ea8d4 100644 --- a/eng/common/scripts/Helpers/Package-Helpers.ps1 +++ b/eng/common/scripts/Helpers/Package-Helpers.ps1 @@ -34,4 +34,4 @@ function GetPackageKey($pkg) { } } return $packageLookup - } \ No newline at end of file + } diff --git a/eng/common/scripts/Service-Level-Readme-Automation.ps1 b/eng/common/scripts/Service-Level-Readme-Automation.ps1 index ce779f4e8e1..bd0a56653d7 100644 --- a/eng/common/scripts/Service-Level-Readme-Automation.ps1 +++ b/eng/common/scripts/Service-Level-Readme-Automation.ps1 @@ -224,7 +224,7 @@ foreach($moniker in $monikers) { $servicePackages = $packagesForService.Values.Where({ $_.ServiceName -eq $service }) - $serviceReadmeBaseName = $service.ToLower().Replace(' ', '-').Replace('/', '-') + $serviceReadmeBaseName = ServiceLevelReadmeNameStyle -serviceName $service $hrefPrefix = "docs-ref-services" generate-service-level-readme -readmeBaseName $serviceReadmeBaseName -pathPrefix $hrefPrefix `