@@ -31,6 +31,12 @@ Output location for unified reference yml file
31
31
32
32
. PARAMETER ReadmeFolderRoot
33
33
The readme folder root path, use default value here for backward compability. E.g. docs-ref-services in Java, JS, Python, api/overview/azure
34
+
35
+ . PARAMETER PackageSourceOverride
36
+ Optional parameter to supply a different package source (useful for daily dev
37
+ docs generation from pacakges which are not published to the default feed). This
38
+ variable is meant to be used in the domain-specific business logic in
39
+ &$GetDocsMsTocDataFn
34
40
#>
35
41
36
42
param (
@@ -41,7 +47,10 @@ param(
41
47
[string ] $OutputLocation ,
42
48
43
49
[Parameter (Mandatory = $false )]
44
- [string ] $ReadmeFolderRoot = ' docs-ref-services'
50
+ [string ] $ReadmeFolderRoot = ' docs-ref-services' ,
51
+
52
+ [Parameter (Mandatory = $false )]
53
+ [string ] $PackageSourceOverride
45
54
)
46
55
. $PSScriptRoot / common.ps1
47
56
. $PSScriptRoot / Helpers/ PSModule- Helpers.ps1
@@ -53,7 +62,8 @@ Set-StrictMode -Version 3
53
62
function GetPackageNode ($package ) {
54
63
$packageInfo = & $GetDocsMsTocDataFn `
55
64
- packageMetadata $package `
56
- - docRepoLocation $DocRepoLocation
65
+ - docRepoLocation $DocRepoLocation `
66
+ - PackageSourceOverride $PackageSourceOverride
57
67
58
68
return [PSCustomObject ]@ {
59
69
name = $packageInfo.PackageTocHeader
0 commit comments