How to turn warnings into errors when building sphinx documentation with setuptools?
问题 I am using setuptools to build my sphinx documentation of a python project ( python setup.py build_sphinx ). As found on, e.g., this site, I have configured the build process using the setup.cfg: [build_sphinx] source-dir = docs/source build-dir = docs/build all_files = 1 However, I would like to add some more options. Specifically, I would like to turn all warnings into errors, which would work with the sphinx-build command with the option -W : sphinx-build --help Sphinx v1.1.3 Usage: /usr