Sphinx fail on critical (e.g. unexpected section title)

Viewed 50

We have an automated build (from Python) of our docs using Sphinx. During the build it encountered a "Critical: unexpected section title". And indeed we had some malformed docs.

And yet, Sphinx went on and finished outputting docs without stopping and didn't report a problem at the end. I added a check of the status code from the Sphinx object after build, and it's zero.

How can I get it to stop and/or report a failure at the end, when it encountered this error?

0 Answers
Related