Adding a parameter for enabling docfx into the script.
This commit is contained in:
+6
-1
@@ -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 }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user