Fixed Windows build issue in makedoc.bat.

This issue affected maintainers (mostly me) only.
Developers who are using Astronomy Engine do not need
to worry about this.

Running the source generator on Windows was broken because
I forgot to copy a step over from the Linux build that
prevents building tutorial pages in the master branch.
I didn't notice this until now because makedoc.bat also
had a bug where it detected an error but did not stop
execution... it just kept going and made it hard to
notice something was wrong.
This commit is contained in:
Don Cross
2021-12-03 21:40:05 -05:00
parent 4c59d93015
commit 0ab6ac0cae

View File

@@ -126,13 +126,16 @@ if errorlevel 1 (exit /b 1)
check_internal_links.py ..\source\js\README.md
if errorlevel 1 (exit /b 1)
echo.Making documentation in HTML format for local viewing.
if exist html (
rd /s/q html
)
call npm run docs:html
if errorlevel 1 (
echo.FATAL: error in jsdoc
if exist ..\tutorials (
echo.Making documentation in HTML format for local viewing.
if exist html (
rd /s/q html
)
call npm run docs:html
if errorlevel 1 (
echo.FATAL: error in jsdoc
exit /b 1
)
)
if exist disable_generate_c_docs (