diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2019-07-31 03:23:56 -0500 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2019-07-31 10:23:56 +0200 |
commit | d973fca00ec85cf0ed2edff73208832b31ffadce (patch) | |
tree | 9dc458871aa7364ee2054ca31203b8884888106e | |
parent | 86ff5baed72dc119c372a0640245b561bd8ecfbf (diff) | |
download | spack-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
-rw-r--r-- | lib/spack/docs/conf.py | 5 |
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. |