Skip to content

Move setup of autosummary earlier in setup(). #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 2, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Oct 23, 2018

setup() calls app.setup_extension('sphinx.ext.autosummary') so that
end users who add numpydoc to their extension list don't need to declare
a dependency on autosummary, but we may just as well move the call to
setup_extension even earlier, which also removes the need to declare a
dependency on autodoc (as autosummary will initialize it).

Otherwise, users need to be careful to have autodoc before numpydoc
in their extension list; without that they get an "Unknown event name:
autodoc-process-docstring" error.

`setup()` calls `app.setup_extension('sphinx.ext.autosummary')` so that
end users who add numpydoc to their extension list don't need to declare
a dependency on autosummary, but we may just as well move the call to
setup_extension even earlier, which also removes the need to declare a
dependency on autodoc (as autosummary will initialize it).

Otherwise, users need to be careful to have autodoc *before* numpydoc
in their extension list; without that they get an "Unknown event name:
autodoc-process-docstring" error.
@anntzer
Copy link
Contributor Author

anntzer commented Jan 2, 2019

kindly bumping

@jnothman
Copy link
Member

jnothman commented Jan 2, 2019

Thanks.

@jnothman jnothman merged commit 2ab437d into numpy:master Jan 2, 2019
@anntzer anntzer deleted the early-autosummary branch January 2, 2019 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants