mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
21 lines
456 B
PowerShell
21 lines
456 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 build --configuration Release ../Terminal.sln
|
|
|
|
rm ../docs -Recurse -Force -ErrorAction SilentlyContinue
|
|
|
|
$env:DOCFX_SOURCE_BRANCH_NAME="main"
|
|
|
|
docfx --metadata --serve --force
|
|
}
|
|
finally {
|
|
# Restore the previous location.
|
|
$prevPwd | Set-Location
|
|
}
|
|
|