2
0

build.ps1 445 B

123456789101112131415161718192021
  1. # Builds the Terminal.gui API documentation using docfx
  2. $prevPwd = $PWD; Set-Location -ErrorAction Stop -LiteralPath $PSScriptRoot
  3. try {
  4. $PWD # output the current location
  5. dotnet tool update -g docfx
  6. # Force delete metadata
  7. rm ./api -Recurse -Force -ErrorAction SilentlyContinue
  8. $env:DOCFX_SOURCE_BRANCH_NAME="v2_develop"
  9. docfx --serve
  10. }
  11. finally {
  12. # Restore the previous location.
  13. $prevPwd | Set-Location
  14. }