Skip to content

Commit 7741b7f

Browse files
committed
Clean API docs before buildingClean API docs before building
1 parent 83cb5cb commit 7741b7f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/build.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ function Run-DotNet {
66
if ($LASTEXITCODE -ne 0) {throw "Exit Code: $LASTEXITCODE"}
77
}
88

9+
# Cleanup
10+
if (Test-Path api) { rm api -Recurse -Force }
11+
912
# Build docs
1013
Run-DotNet tool restore
1114
Run-DotNet docfx --logLevel=warning --warningsAsErrors docfx.json

doc/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ else
99
dotnet="../0install.sh run --version 9.0.200.. https://apps.0install.net/dotnet/sdk.xml"
1010
fi
1111

12-
# Build docs
12+
echo "Build docs"
13+
rm -rf api/
1314
$dotnet tool restore
1415
$dotnet docfx --logLevel=warning --warningsAsErrors docfx.json

0 commit comments

Comments
 (0)