From 94d7e681ee90073c5d3a31da61865e9c708effdb Mon Sep 17 00:00:00 2001 From: Akihiro Motoki Date: Wed, 5 Jul 2017 06:49:58 +0900 Subject: [PATCH] Enable warning-is-error in doc build The command to build docs is updated to match that run in the gate. The previous command is to ensure no warning, but sphinx 1.5 or later has warning-is-error option and there is no need to run a different command in tox docs target. Change-Id: Ieac8afd096a158aff6403326104ced31adcb77e1 --- setup.cfg | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index bf219e9..f64a17d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -26,6 +26,7 @@ packages = source-dir = doc/source build-dir = doc/build all_files = 1 +warning-is-error = 1 [upload_sphinx] upload-dir = doc/build/html diff --git a/tox.ini b/tox.ini index cda97a3..9e73812 100644 --- a/tox.ini +++ b/tox.ini @@ -33,7 +33,7 @@ commands = coverage report [testenv:docs] -commands = sphinx-build -W -b html doc/source doc/build/html +commands = python setup.py build_sphinx [testenv:api-ref] whitelist_externals = rm