Skip to content

Commit 2ab437d

Browse files
authored
Move setup of autosummary earlier in setup(). (#191)
removes the need for users to declare a dependency on autodoc
2 parents 0e4923e + 929f7ab commit 2ab437d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpydoc/numpydoc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ def setup(app, get_doc_object_=get_doc_object):
176176
global get_doc_object
177177
get_doc_object = get_doc_object_
178178

179+
app.setup_extension('sphinx.ext.autosummary')
180+
179181
app.connect('autodoc-process-docstring', mangle_docstrings)
180182
app.connect('autodoc-process-signature', mangle_signature)
181183
app.connect('doctree-read', relabel_references)
@@ -191,8 +193,6 @@ def setup(app, get_doc_object_=get_doc_object):
191193
app.add_domain(NumpyPythonDomain)
192194
app.add_domain(NumpyCDomain)
193195

194-
app.setup_extension('sphinx.ext.autosummary')
195-
196196
metadata = {'version': __version__,
197197
'parallel_read_safe': True}
198198
return metadata

0 commit comments

Comments
 (0)