How to detect if the build failed partially #128
-
I would like to know if there is a way to either make that jupyter-book build exits with a non zero code if any if the documents failed to build or alternatively any other way to detect such a situation. Right now in my hands if a document fails, it continues building the others and exits with a 0 status. The reason is that I want to create an automated report that should run periodically. If one of the documents failed I want to detect that in order to abort the deployment so that the current report is nit broken and send an email to look at the issue. What is the best wayto achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
We'll have the same need at https://quantecon.org/, after we switch over to JB. @mmcky and @AakashGfude will have useful thoughts on this. |
Beta Was this translation helpful? Give feedback.
-
The best of course would be to have a configuration switch that would implement that behavior (full abort on any error with non 0 exit status) |
Beta Was this translation helpful? Give feedback.
-
Just run |
Beta Was this translation helpful? Give feedback.
Just run
jupyter-book build -W -n --keep-going mybookname/
,as is already suggested in the documentation 😉
https://jupyterbook.org/start/build.html#build-your-book-s-html