2
0

docfx.cmd 523 B

123456789101112131415161718192021
  1. REM Copyright The OpenTelemetry Authors
  2. REM SPDX-License-Identifier: Apache-2.0
  3. SETLOCAL ENABLEEXTENSIONS
  4. type ci\docfx.json > docfx.json
  5. type ci\toc.yml > toc.yml
  6. docfx build docfx.json > docfx.log
  7. DEL docfx.json 2> NUL
  8. DEL toc.yml 2> NUL
  9. @IF NOT %ERRORLEVEL% == 0 (
  10. type docfx.log
  11. ECHO Error: docfx build failed. 1>&2
  12. EXIT /B %ERRORLEVEL%
  13. )
  14. @type docfx.log
  15. @type docfx.log | findstr /C:"Build succeeded."
  16. @IF NOT %ERRORLEVEL% == 0 (
  17. ECHO Error: you have introduced build warnings. 1>&2
  18. EXIT /B %ERRORLEVEL%
  19. )