Merge "Turn on warning-is-error in doc build"
This commit is contained in:
commit
f7c55c169a
@ -27,10 +27,20 @@
|
|||||||
# serve to show the default.
|
# serve to show the default.
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
import logging
|
||||||
import os
|
import os
|
||||||
from swift import __version__
|
from swift import __version__
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
# NOTE(amotoki): Our current doc build job uses an older version of
|
||||||
|
# liberasurecode which comes from Ubuntu 16.04.
|
||||||
|
# pyeclib emits a warning message if liberasurecode <1.3.1 is used [1] and
|
||||||
|
# this causes the doc build failure if warning-is-error is enabled in Sphinx.
|
||||||
|
# As a workaround we suppress the warning message from pyeclib until we use
|
||||||
|
# a newer version of liberasurecode in our doc build job.
|
||||||
|
# [1] https://github.com/openstack/pyeclib/commit/d163972b
|
||||||
|
logging.getLogger('pyeclib').setLevel(logging.ERROR)
|
||||||
|
|
||||||
# If extensions (or modules to document with autodoc) are in another directory,
|
# If extensions (or modules to document with autodoc) are in another directory,
|
||||||
# add these directories to sys.path here. If the directory is relative to the
|
# add these directories to sys.path here. If the directory is relative to the
|
||||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||||
|
Loading…
Reference in New Issue
Block a user