Skip to content

DOC: tweak template to use automodule (not currentmodule) #9386

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
Oct 13, 2017

Conversation

tacaswell
Copy link
Member

This ensure that the module gets created a link target added. The
trick is tell automodule to not document members.

This is slightly better than using the module directive as it at
least pulls the docstring.

closes #9331

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is PEP 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

This ensure that the module gets created a link target added.  The
trick is tell `automodule` to not document members.

This is slightly better than using the `module` directive as it at
least pulls the docstring.
@tacaswell tacaswell added this to the 2.1.0-docs milestone Oct 13, 2017
Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tacaswell
Copy link
Member Author

Compare to http://matplotlib.org/api/index.html At least now the link is live!

@anntzer anntzer dismissed their stale review October 13, 2017 19:32

see comment

@anntzer
Copy link
Contributor

anntzer commented Oct 13, 2017

Indeed. But can you not put the link on http://matplotlib.org/api/pyplot_summary.html instead?
(Not going to block on this as the PR is already an improvement but that'd be better).

@QuLogic QuLogic merged commit c13aeda into matplotlib:v2.1.0-doc Oct 13, 2017
@tacaswell tacaswell deleted the doc_fix_inventory branch October 13, 2017 21:23
@tacaswell
Copy link
Member Author

Yes, that is probably a better place for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants