diff --git a/eng/common/scripts/Update-DocsMsToc.ps1 b/eng/common/scripts/Update-DocsMsToc.ps1 index 5287d3157563..cacc6dbf9381 100644 --- a/eng/common/scripts/Update-DocsMsToc.ps1 +++ b/eng/common/scripts/Update-DocsMsToc.ps1 @@ -29,6 +29,8 @@ depending on the requirements for the domain .PARAMETER OutputLocation Output location for unified reference yml file +.PARAMETER ReadmeFolderRoot +The readme folder root path, use default value here for backward compability. E.g. docs-ref-services in Java, JS, Python, api/overview/azure #> param( @@ -36,7 +38,10 @@ param( [string] $DocRepoLocation, [Parameter(Mandatory = $true)] - [string] $OutputLocation + [string] $OutputLocation, + + [Parameter(Mandatory = $false)] + [string] $ReadmeFolderRoot = 'docs-ref-services' ) . $PSScriptRoot/common.ps1 . $PSScriptRoot/Helpers/PSModule-Helpers.ps1 @@ -208,7 +213,7 @@ foreach ($service in $serviceNameList) { $serviceReadmeBaseName = $service.ToLower().Replace(' ', '-').Replace('/', '-') $serviceTocEntry = [PSCustomObject]@{ name = $service; - href = "~/docs-ref-services/{moniker}/$serviceReadmeBaseName.md" + href = "~/$ReadmeFolderRoot/{moniker}/$serviceReadmeBaseName.md" landingPageType = 'Service' items = @($packageItems) }