Skip to content

Commit d5cd548

Browse files
authored
Automatically load autosummary (#143)
Fix #141
1 parent e6f4bf9 commit d5cd548

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ The extension is available from:
99
* `numpydoc on GitHub <https://github.com/numpy/numpydoc/>`_
1010

1111
'numpydoc' should be added to the ``extensions`` option in your Sphinx
12-
``conf.py``.
13-
12+
``conf.py``. (Note that `sphinx.ext.autosummary` will automatically be loaded
13+
as well.)
1414

1515
Sphinx config options
1616
=====================

numpydoc/numpydoc.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ def setup(app, get_doc_object_=get_doc_object):
151151
app.add_domain(NumpyPythonDomain)
152152
app.add_domain(NumpyCDomain)
153153

154+
app.setup_extension('sphinx.ext.autosummary')
155+
154156
metadata = {'version': __version__,
155157
'parallel_read_safe': True}
156158
return metadata

0 commit comments

Comments
 (0)