|
|
@ -83,11 +83,12 @@ for: |
|
|
|
function Do-DocFX |
|
|
|
{ |
|
|
|
Add-Content link_branch.json "{`"_gitContribute`":{`"sourceBranch`":`"$env:APPVEYOR_REPO_COMMIT`",`"apiSpecFolder`":`"docs/override`"}}" |
|
|
|
& docfx metadata |
|
|
|
& docfx build --globalMetadataFiles link_branch.json @Args |
|
|
|
if ($lastexitcode -ne 0){ |
|
|
|
throw [System.Exception] "docfx build failed with exit code $lastexitcode." |
|
|
|
} |
|
|
|
#& docfx metadata |
|
|
|
#& docfx build --globalMetadataFiles link_branch.json @Args |
|
|
|
#if ($lastexitcode -ne 0){ |
|
|
|
# throw [System.Exception] "docfx build failed with exit code $lastexitcode." |
|
|
|
#} |
|
|
|
& .\build.ps1 |
|
|
|
} |
|
|
|
|
|
|
|
if ($env:APPVEYOR_REPO_TAG -eq "true") |
|
|
|