From 2b6732519ec6931d6eb33194744d9aeee85fabde Mon Sep 17 00:00:00 2001 From: Joel Nothman Date: Mon, 13 Nov 2017 18:34:06 +1100 Subject: [PATCH] Automatically load autosummary Fix #141 --- doc/install.rst | 4 ++-- numpydoc/numpydoc.py | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/doc/install.rst b/doc/install.rst index d408189c..5658dbba 100644 --- a/doc/install.rst +++ b/doc/install.rst @@ -9,8 +9,8 @@ The extension is available from: * `numpydoc on GitHub `_ 'numpydoc' should be added to the ``extensions`` option in your Sphinx -``conf.py``. - +``conf.py``. (Note that `sphinx.ext.autosummary` will automatically be loaded +as well.) Sphinx config options ===================== diff --git a/numpydoc/numpydoc.py b/numpydoc/numpydoc.py index 26abd66a..0a6cc79c 100644 --- a/numpydoc/numpydoc.py +++ b/numpydoc/numpydoc.py @@ -151,6 +151,8 @@ def setup(app, get_doc_object_=get_doc_object): app.add_domain(NumpyPythonDomain) app.add_domain(NumpyCDomain) + app.setup_extension('sphinx.ext.autosummary') + metadata = {'version': __version__, 'parallel_read_safe': True} return metadata