summaryrefslogtreecommitdiff
path: root/lib/spack/docs/conf.py
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2019-07-31 03:23:56 -0500
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-07-31 10:23:56 +0200
commitd973fca00ec85cf0ed2edff73208832b31ffadce (patch)
tree9dc458871aa7364ee2054ca31203b8884888106e /lib/spack/docs/conf.py
parent86ff5baed72dc119c372a0640245b561bd8ecfbf (diff)
downloadspack-d973fca00ec85cf0ed2edff73208832b31ffadce.tar.gz
spack-d973fca00ec85cf0ed2edff73208832b31ffadce.tar.bz2
spack-d973fca00ec85cf0ed2edff73208832b31ffadce.tar.xz
spack-d973fca00ec85cf0ed2edff73208832b31ffadce.zip
Fix Sphinx deprecation warning when building docs (#12205)
* Fix Sphinx deprecation warning when building docs * Set minimum required version of Sphinx
Diffstat (limited to 'lib/spack/docs/conf.py')
-rw-r--r--lib/spack/docs/conf.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/spack/docs/conf.py b/lib/spack/docs/conf.py
index 44ce87d55f..cacbbb3a41 100644
--- a/lib/spack/docs/conf.py
+++ b/lib/spack/docs/conf.py
@@ -68,7 +68,6 @@ subprocess.call([
# Without this, the API Docs will never actually update
#
apidoc_args = [
- '--force', # Older versions of Sphinx ignore the first argument
'--force', # Overwrite existing files
'--no-toc', # Don't create a table of contents file
'--output-dir=.', # Directory to place all output
@@ -91,12 +90,12 @@ class PatchedPythonDomain(PythonDomain):
env, fromdocname, builder, typ, target, node, contnode)
def setup(sphinx):
- sphinx.override_domain(PatchedPythonDomain)
+ sphinx.add_domain(PatchedPythonDomain, override=True)
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
-#needs_sphinx = '1.0'
+needs_sphinx = '1.8'
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.