From 0ab6ac0cae743d49d2bd0f4e5b326ea89bf83a2e Mon Sep 17 00:00:00 2001 From: Don Cross Date: Fri, 3 Dec 2021 21:40:05 -0500 Subject: [PATCH] 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. --- generate/makedoc.bat | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/generate/makedoc.bat b/generate/makedoc.bat index fa8e7faf..63c16b22 100644 --- a/generate/makedoc.bat +++ b/generate/makedoc.bat @@ -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 (