From ee911d961e0e703d952c423cdeb656851913a1ec Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Sun, 19 Sep 2021 21:37:12 -0700 Subject: [PATCH 1/2] Add --- eng/common/scripts/Update-DocsMsPackages.ps1 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1 index f93e6cb058..03e92c1f68 100644 --- a/eng/common/scripts/Update-DocsMsPackages.ps1 +++ b/eng/common/scripts/Update-DocsMsPackages.ps1 @@ -18,10 +18,17 @@ packages which have not released to a central package manager. .PARAMETER DocRepoLocation Location of the docs.microsoft.com reference docs repo. +.PARAMETER PackageSourceOverride +Optional parameter to supply a different package source (useful for daily dev +docs generation from pacakges which are not published to the default feed) + #> param ( [Parameter(Mandatory = $true)] - $DocRepoLocation # the location of the cloned doc repo + [string] $DocRepoLocation, # the location of the cloned doc repo + + [Parameter(Mandatory = $false)] + [string] $PackageSourceOverride ) . (Join-Path $PSScriptRoot common.ps1) From 042f02b5b317036b7176b8e9f5e37622cc997dfc Mon Sep 17 00:00:00 2001 From: Daniel Jurek Date: Mon, 20 Sep 2021 04:07:03 -0700 Subject: [PATCH 2/2] Add more description to docs of where the variable is consumed --- eng/common/scripts/Update-DocsMsPackages.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eng/common/scripts/Update-DocsMsPackages.ps1 b/eng/common/scripts/Update-DocsMsPackages.ps1 index 03e92c1f68..562cc307be 100644 --- a/eng/common/scripts/Update-DocsMsPackages.ps1 +++ b/eng/common/scripts/Update-DocsMsPackages.ps1 @@ -20,7 +20,9 @@ Location of the docs.microsoft.com reference docs repo. .PARAMETER PackageSourceOverride Optional parameter to supply a different package source (useful for daily dev -docs generation from pacakges which are not published to the default feed) +docs generation from pacakges which are not published to the default feed). This +variable is meant to be used in the domain-specific business logic in +&$UpdateDocsMsPackagesFn #> param (