summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCyril Roelandt <cyril@redhat.com>2021-10-12 21:14:31 +0200
committerCyril Roelandt <cyril@redhat.com>2021-10-12 21:14:31 +0200
commite4930e5dc8b7e3102a4f32ffa6a18af8b4cb3a3a (patch)
treed31ed292040d57eb31ed0c088d9c3a220f98377c /doc
parent68200a88ff03921f47c2fad872a7f7e451fd1638 (diff)
downloadglance_store-e4930e5dc8b7e3102a4f32ffa6a18af8b4cb3a3a.tar.gz
Fix documentation build with Sphinx>=4.2.0
Change-Id: I07b14385290cbaba570115a85233d35a88b4d586 Closes-Bug: #1946789
Diffstat (limited to 'doc')
-rw-r--r--doc/source/conf.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index e172918..2899b22 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -101,3 +101,10 @@ latex_documents = [
# during an actual deployment and won't cause any issue during usage.
autodoc_mock_imports = ['glance_store.common.fs_mount',
'glance_store.common.cinder_utils']
+
+# Since version 4.2.0, Sphinx emits a warning when encountering a mocked
+# object, leading to the following error:
+# "A mocked object is detected: 'glance_store.common.cinder_utils'"
+# To prevent this, we disable all warnings from the autodoc extension, since
+# there is no finer grain yet.
+suppress_warnings = ['autodoc.*']