-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use "dotnet tool" instead of "0install" to get docfx
- Loading branch information
1 parent
7080393
commit 9906337
Showing
3 changed files
with
30 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"version": 1, | ||
"isRoot": true, | ||
"tools": { | ||
"docfx": { | ||
"version": "2.74.1", | ||
"commands": [ | ||
"docfx" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
$ErrorActionPreference = "Stop" | ||
pushd $PSScriptRoot | ||
|
||
..\0install.ps1 run --batch https://apps.0install.net/dotnet/docfx.xml --logLevel=warning --warningsAsErrors docfx.json | ||
if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"} | ||
function Run-DotNet { | ||
..\0install.ps1 run --batch --version 6.0.. https://apps.0install.net/dotnet/sdk.xml @args | ||
if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"} | ||
} | ||
|
||
# Build docs | ||
Run-DotNet tool restore | ||
Run-DotNet docfx --logLevel=warning --warningsAsErrors docfx.json | ||
|
||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters