From 833fdea9e5de1f701ef9fc6446fdcea70ba68bc3 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 17 Jan 2018 13:33:06 -0500 Subject: [PATCH] suppress warnings from wsmeext.sphinxext When the wsmeext.sphinxext extension is initialized during the documentation build it registers some autodoc classes that use the same objtype as built-in types. This causes the associated directives to be overridden, which emits a warning. That warning prevents us from turning on warning-is-error in the build. Since there is nothing we can do about it, we want to ignore it. Change-Id: Ie74174176d6140467c60ea864dc2df4dc2287604 Signed-off-by: Doug Hellmann --- doc/source/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/source/conf.py b/doc/source/conf.py index a754076e..8928c89b 100755 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -36,6 +36,11 @@ wsme_protocols = ['restjson', 'restxml'] # text edit cycles. # execute "export SPHINX_DEBUG=1" in your terminal to disable +# Ignore the following warning: WARNING: while setting up extension +# wsmeext.sphinxext: directive 'autoattribute' is already registered, +# it will be overridden. +suppress_warnings = ['app.add_directive'] + # The suffix of source filenames. source_suffix = '.rst'