Convert warnings to errors in Sphinx documentation builds
This commit is contained in:
parent
58e6f0d753
commit
9619013abc
|
@ -43,7 +43,7 @@ function(add_documentation_target)
|
|||
add_custom_command(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${target}_done
|
||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${out_dir} &&
|
||||
${python_command} ${SPHINX_COMMAND} -b ${target}
|
||||
${python_command} ${SPHINX_COMMAND} -W -b ${target}
|
||||
-d ${doctree} -c ${sphinx_dir}
|
||||
${sphinx_dir}/source
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${target} &&
|
||||
|
|
|
@ -87,7 +87,7 @@ cleanvirtualenv:
|
|||
rm -rf $(VENVDIR)
|
||||
|
||||
html: buildsphinx cleanhtml
|
||||
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
$(SPHINXBUILD) -W -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
|
||||
@echo
|
||||
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
|
||||
|
||||
|
|
Loading…
Reference in New Issue