From d973fca00ec85cf0ed2edff73208832b31ffadce Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 31 Jul 2019 03:23:56 -0500 Subject: Fix Sphinx deprecation warning when building docs (#12205) * Fix Sphinx deprecation warning when building docs * Set minimum required version of Sphinx --- lib/spack/docs/conf.py | 5 ++--- 1 file 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. -- cgit v1.2.3-60-g2f50