]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | SETLOCAL ENABLEEXTENSIONS |
2 | ||
3 | type ci\docfx.json > docfx.json | |
4 | type ci\toc.yml > toc.yml | |
5 | docfx build docfx.json > docfx.log | |
6 | DEL docfx.json 2> NUL | |
7 | DEL toc.yml 2> NUL | |
8 | @IF NOT %ERRORLEVEL% == 0 ( | |
9 | type docfx.log | |
10 | ECHO Error: docfx build failed. 1>&2 | |
11 | EXIT /B %ERRORLEVEL% | |
12 | ) | |
13 | @type docfx.log | |
14 | @type docfx.log | findstr /C:"Build succeeded." | |
15 | @IF NOT %ERRORLEVEL% == 0 ( | |
16 | ECHO Error: you have introduced build warnings. 1>&2 | |
17 | EXIT /B %ERRORLEVEL% | |
18 | ) |