summaryrefslogtreecommitdiff
path: root/doc/ext
diff options
context:
space:
mode:
authorguibog <guibog@douban.com>2013-10-23 16:36:45 +0800
committerguibog <guibog@douban.com>2013-10-23 16:36:45 +0800
commit10e786edac3809660e9129fe53f5e7e05cc9429e (patch)
tree635e995e667706102e8fdb039ba2d968f7471f60 /doc/ext
parenta56b65634bf3fe57af58e781674ef0be339be2fe (diff)
downloadsphinx-10e786edac3809660e9129fe53f5e7e05cc9429e.tar.gz
autodoc extension: add autodoc_mock_imports config value
Diffstat (limited to 'doc/ext')
-rw-r--r--doc/ext/autodoc.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/ext/autodoc.rst b/doc/ext/autodoc.rst
index c92fe0c4..c37328f5 100644
--- a/doc/ext/autodoc.rst
+++ b/doc/ext/autodoc.rst
@@ -195,6 +195,10 @@ inserting them into the page source under a suitable :rst:dir:`py:module`,
.. versionadded:: 1.2
+ * Add a list of modules in the :confval:`autodoc_mock_imports` to prevent
+ import errors to halt the building process when some external dependencies
+ are not importable at build time.
+
.. rst:directive:: autofunction
autodata
@@ -335,6 +339,12 @@ There are also new config values that you can set:
.. versionadded:: 1.1
+.. confval:: autodoc_mock_imports
+
+ This value contains a list of modules to be mocked up. This is useful when
+ some external dependencies are not met at build time and break the building
+ process.
+
Docstring preprocessing
-----------------------