Skip to content

Commit

Permalink
Automatically load autosummary (#143)
Browse files Browse the repository at this point in the history
Fix #141
  • Loading branch information
jnothman committed Nov 26, 2017
1 parent e6f4bf9 commit d5cd548
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ The extension is available from:
* `numpydoc on GitHub <https://github.com/numpy/numpydoc/>`_

'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
=====================
Expand Down
2 changes: 2 additions & 0 deletions numpydoc/numpydoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d5cd548

Please sign in to comment.