8000 DOC: add dropdown by jklymak · Pull Request #22246 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: add dropdown #22246

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 7 commits into from
Jan 18, 2022
Merged

DOC: add dropdown #22246

merged 7 commits into from
Jan 18, 2022

Conversation

jklymak
Copy link
Member
@jklymak jklymak commented Jan 16, 2022

PR Summary

This won't work because the json file needs to be hard coded versus relatively coded, and I'm also not sure we pull pydata-sphinx-theme 0.8 However, when we do, and when this gets merged into stable, it will allow a drop-down menu of version info. See https://pydata-sphinx-theme.readthedocs.io/en/latest/

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

Documentation

  • New features are documented, with examples if plot related.
  • 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).
  • Documentation is sphinx and numpydoc compliant (the docs should build without error).

@dstansby dstansby added Documentation Documentation: website layout/behavior/styling changes labels Jan 16, 2022
Just last point releases before 3.0
@jklymak jklymak marked this pull request as ready for review January 16, 2022 21:09
@jklymak
Copy link
Member Author
jklymak commented Jan 16, 2022

I think this will work fine on devdocs once merged. Note there is another step here for the release manager...

Copy link
Member
@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Please add a description what needs to be done by the release manager
to the release guide.

@@ -0,0 +1,105 @@
[
{
"name": "stable/3.5.1",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"name": "stable/3.5.1",
"name": "3.5.1 (latest)",

I assume it looks better in the dropdown if all entries start with version numbers. I also think that "latest" is a better description than "stable".

Copy link
Member Author

Choose a reason for hiding this comment

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

Well, except the directory is stable, so we should probably follow that?

"version": "stable"
},
{
"name": "devel/3.6",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"name": "devel/3.6",
"name": "3.6 (devel)",

Copy link
Member Author

Choose a reason for hiding this comment

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

.. and I changed this to "3.6 (devdocs)" to be consistent with my argument above ;-) However, I don't feel strongly if we should rename these.

I do hope we can merge this, just to see if it works on the devdocs. We can always fine-tune it later.

@timhoffm
Copy link
Member

Which milestone do you want?

Copy link
Member
@dstansby dstansby left a comment

Choose a reason for hiding this comment

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

Does the theme doc requirement need pinning to >=0.8 now?

8000

@dstansby
Copy link
Member

Also this doesn't seem to be working on the built docs? https://66341-1385122-gh.circle-artifacts.com/0/doc/build/html/index.html

@jklymak
Copy link
Member Author
jklymak commented Jan 17, 2022

It doesn't work because it requires the json to be hard coded on the web somewhere. Which merging this pr will do ;-).

We could try a backport after we are sure this works.

@jklymak jklymak force-pushed the doc-add-version-dropdown branch from 8d82bf6 to 38cdca0 Compare January 18, 2022 09:23
@dstansby dstansby merged commit 1fb8c74 into matplotlib:main Jan 18, 2022
@dstansby dstansby added this to the v3.6.0 milestone Jan 18, 2022
@jklymak jklymak deleted the doc-add-version-dropdown branch January 18, 2022 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: website layout/behavior/styling changes Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0