[PATCH 02 of 10 saem_ref V2+] [doc] Turn rest warnings into error while building doc

Sylvain Thenault sylvain.thenault at logilab.fr
Tue Apr 11 12:17:35 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1491899383 -7200
#      Tue Apr 11 10:29:43 2017 +0200
# Node ID b2cdd3ba40523f6c0c3757e384d2a309f801f92c
# Parent  bae5bda0dfcd32299d366c1e286057359ecf891b
[doc] Turn rest warnings into error while building doc

and fix sphinx config to make it green (directories in html_static_path should
exist).

Anyway, we are still including files from underlying cubes...

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,11 +35,11 @@ commands = {envpython} -m pylint --disab
 changedir = doc
 whitelist_externals =
   sphinx-build
 deps =
   sphinx
-commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html
+commands = sphinx-build -W -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html
 
 [flake8]
 max-line-length = 100
 exclude = cubicweb_saem_ref/migration,cubicweb_saem_ref/uiprops.py,.tox,doc,cubicweb_saem_ref/scripts
 ignore = W503


More information about the saem-devel mailing list