Skip to content

Commit

Permalink
Use "dotnet tool" instead of "0install" to get docfx
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Dec 27, 2023
1 parent 35ceb45 commit dc9ec4e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
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"
]
}
}
}
10 changes: 8 additions & 2 deletions doc/build.ps1
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
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"automergeType": "branch"
},
{
"matchPackagePatterns": ["gittools", "SourceLink"],
"matchPackagePatterns": ["gittools", "docfx", "SourceLink"],
"automerge": true,
"automergeType": "branch"
},
Expand Down

0 comments on commit dc9ec4e

Please sign in to comment.