[PATCH 4 of 4 sherpa] [pkg] Turn warning into error while building doc

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Apr 12 11:45:48 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1491989854 -7200
#      Wed Apr 12 11:37:34 2017 +0200
# Node ID 4685ff56698458bae30989fde02e90ee3abdb88a
# Parent  fc9d76402c135651147ff20abfabe1c482cbcb00
[pkg] Turn warning into error while building doc

So it can be checked by CI

Fix former-warning-now-error in sphinx configuration which expect static dirs to
exist.

diff --git a/doc/conf.py b/doc/conf.py
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -125,11 +125,11 @@ html_theme = 'default'
 #html_favicon = None
 
 # Add any paths that contain custom static files (such as style sheets) here,
 # relative to this directory. They are copied after the builtin static files,
 # so a file named "default.css" will overwrite the builtin "default.css".
-html_static_path = ['_static']
+html_static_path = []
 
 # Add any extra paths that contain custom files (such as robots.txt or
 # .htaccess) here, relative to this directory. These files are copied
 # directly to the root of the documentation.
 #html_extra_path = []
diff --git a/tox.ini b/tox.ini
--- a/tox.ini
+++ b/tox.ini
@@ -35,6 +35,6 @@ exclude = setup.py,doc/conf.py,cubicweb_
 [testenv:doc]
 skip_install = true
 changedir = doc
 deps =
   sphinx
-commands = sphinx-build -b html -d doctrees .  html
+commands = sphinx-build -W -b html -d doctrees .  html


More information about the saem-devel mailing list