Skip to content

Slightly reorganize api docs. #19440

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
Feb 5, 2021
Merged

Slightly reorganize api docs. #19440

merged 1 commit into from
Feb 5, 2021

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Feb 2, 2021

  • Move _enums to _enums_api, consistently with other modules, and
    move it to the end (together with the other private module, _api).

  • Group the various GUI backends together based on the GUI toolkit.
    (It seems a bit silly to have so many pages which all refer to
    backends with no generated docs anyways, and even if we could easily
    generate docs for them on CI we would not want to document all 4
    mostly indentical copies of qt{4,5}{agg,cairo} on 4 different pages.)

PR Summary

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • New features are documented, with examples if plot related.
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

jklymak
jklymak previously requested changes Feb 3, 2021
Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

Blocking just so that we sort out the moving/redirect process before this is merged. We will likely try to start using reredirects and this PR would need entries in the list of re-directs. https://gitlab.com/documatt/sphinx-reredirects/-/tree/master/

@jklymak
Copy link
Member

jklymak commented Feb 4, 2021

This has a real error?

/home/circleci/project/doc/api/backend_wx_api.rst:12: WARNING: py:mod reference target not found: matplotlib.backends.backend_wxcairo

@jklymak jklymak dismissed their stale review February 4, 2021 22:14

not needed

@jklymak jklymak mentioned this pull request Feb 4, 2021
8 tasks
- Move _enums to _enums_api, consistently with other modules, and
  move it to the end (together with the other private module, _api).

- Group the various GUI backends together based on the GUI toolkit.
  (It seems a bit silly to have so many pages which all refer to
  backends with no generated docs anyways, and even if we could easily
  generate docs for them on CI we would not want to document all 4
  mostly indentical copies of qt{4,5}{agg,cairo} on 4 different pages.)

  Also use `.. module::` entries to fix broken references.
@anntzer
Copy link
Contributor Author

anntzer commented Feb 4, 2021

hopefully better now...

@jklymak jklymak merged commit 58775f7 into matplotlib:master Feb 5, 2021
@jklymak
Copy link
Member

jklymak commented Feb 5, 2021

How did you make the missing_references.json?

@anntzer anntzer deleted the apidoc branch February 5, 2021 07:48
@anntzer
Copy link
Contributor Author

anntzer commented Feb 5, 2021

make O=-Dmissing_references_write_json=1 html

@jklymak jklymak added this to the v3.4.0 milestone Feb 7, 2021
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.

2 participants