diff options
-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. |