mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-27 00:07:58 +01:00
22 lines
445 B
PowerShell
22 lines
445 B
PowerShell
# Builds the Terminal.gui API documentation using docfx
|
|
|
|
$prevPwd = $PWD; Set-Location -ErrorAction Stop -LiteralPath $PSScriptRoot
|
|
|
|
try {
|
|
$PWD # output the current location
|
|
|
|
dotnet tool update -g docfx
|
|
|
|
# Force delete metadata
|
|
rm ./api -Recurse -Force -ErrorAction SilentlyContinue
|
|
|
|
$env:DOCFX_SOURCE_BRANCH_NAME="v2_develop"
|
|
|
|
docfx --serve
|
|
}
|
|
finally {
|
|
# Restore the previous location.
|
|
$prevPwd | Set-Location
|
|
}
|
|
|