Adding a parameter for enabling docfx into the script.

This commit is contained in:
elitsa
2019-05-08 14:27:44 +02:00
parent fc0f996500
commit 3d80d511a4
+6 -1
View File
@@ -11,6 +11,11 @@
[Alias("loc")] [Alias("loc")]
[switch] $local = $false, [switch] $local = $false,
# enable docfx
[Parameter(Mandatory=$false)]
[Alias("doc")]
[switch] $docfx = $false,
# keep the build directories, don't clear them # keep the build directories, don't clear them
[Parameter(Mandatory=$false)] [Parameter(Mandatory=$false)]
[Alias("c")] [Alias("c")]
@@ -31,7 +36,7 @@
$ubuild = &"$PSScriptRoot\build-bootstrap.ps1" $ubuild = &"$PSScriptRoot\build-bootstrap.ps1"
if (-not $?) { return } if (-not $?) { return }
$ubuild.Boot($PSScriptRoot, $ubuild.Boot($PSScriptRoot,
@{ Local = $local; }, @{ Local = $local; WithDocFx = $docfx },
@{ Continue = $continue }) @{ Continue = $continue })
if ($ubuild.OnError()) { return } if ($ubuild.OnError()) { return }