build.ps1 456 B

1234567891011121314151617181920
  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 build --configuration Release ../Terminal.sln
  6. rm ../docs -Recurse -Force -ErrorAction SilentlyContinue
  7. $env:DOCFX_SOURCE_BRANCH_NAME="main"
  8. docfx --metadata --serve --force
  9. }
  10. finally {
  11. # Restore the previous location.
  12. $prevPwd | Set-Location
  13. }