Skip to content

Commit

Permalink
Docs: Use latest version of DocFX
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Apr 13, 2023
1 parent 1268375 commit f995504
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ cd `dirname $0`

src/build.sh ${1:-1.0-dev}
src/test.sh
doc/build.sh
2 changes: 1 addition & 1 deletion doc/build.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
$ErrorActionPreference = "Stop"
pushd $PSScriptRoot

..\0install.ps1 run --batch --version=..!2.60 https://apps.0install.net/dotnet/docfx.xml --loglevel=warning --warningsAsErrors docfx.json
..\0install.ps1 run --batch https://apps.0install.net/dotnet/docfx.xml --loglevel=warning --warningsAsErrors docfx.json
if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"}

popd
5 changes: 5 additions & 0 deletions doc/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh
set -e
cd `dirname $0`

../0install.sh run https://apps.0install.net/dotnet/docfx.xml --loglevel=warning --warningsAsErrors docfx.json
21 changes: 7 additions & 14 deletions doc/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
{
"src": [
{
"src": "../artifacts/Release/netstandard2.1",
"files": [
"NanoByte.SatSolver*.dll"
]
"src": "../src",
"files": ["*/*.csproj"],
"exclude": ["UnitTests/*"]
}
],
"properties": {
"TargetFramework": "netstandard2.1"
},
"dest": "api"
}
],
Expand All @@ -29,19 +31,10 @@
]
}
],
"resource": [
{
"files": [
"*.png"
]
}
],
"overwrite": [
{
"src": "../src/",
"files": [
"**/*.md"
]
"files": ["**/*.md"]
}
],
"xrefService": [
Expand Down

0 comments on commit f995504

Please sign in to comment.