Skip to content

Commit 7ba08be

Browse files
authored
DOCS: Fix sphinx hook build check (#136)
This should ensure that an error triggered during the exeuction of any example as a notebook ends up with a failure in our CICD.
1 parent 38daa0e commit 7ba08be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/source/conf.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@ def check_example_error(app, pagename, templatename, context, doctree):
218218
def check_build_finished_without_error(app, exception):
219219
"""Check that no error is detected along the documentation build process."""
220220
if app.builder.config.html_context.get("build_error", False):
221-
raise Exception("Build failed due to an error in html-page-context")
221+
logger.info("Build failed due to an error in html-page-context")
222+
exit(1)
222223

223224

224225
def check_pandoc_installed(app):

0 commit comments

Comments
 (0)