Skip to content

Commit

Permalink
Doc build script
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefNemec committed Jun 4, 2018
1 parent 4343c95 commit 2fe5697
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions build/buildDocs.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
param(
[switch]$SkipMetadata
)

$ErrorActionPreference = "Stop"
& .\common.ps1

if (!$SkipMetadata)
{
$metadata = StartAndWait "docfx" "metadata" "..\doc\"
if ($metadata -ne 0)
{
throw "Failed to build doc metadata."
}
}

$build = StartAndWait "docfx" "build" "..\doc\"
if ($build -ne 0)
{
throw "Failed to build doc."
}

0 comments on commit 2fe5697

Please sign in to comment.