Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 4480 (Azure#19406)
Browse files Browse the repository at this point in the history
* Add extra parameters for .net readme path

* Use another way for default value

* Remove custom source

Co-authored-by: sima-zhu <sizhu@microsoft.com>
  • Loading branch information
azure-sdk and sima-zhu authored Oct 24, 2022
1 parent 20e8304 commit f70f20a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions eng/common/scripts/Update-DocsMsToc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,19 @@ 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(
[Parameter(Mandatory = $true)]
[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
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit f70f20a

Please sign in to comment.