Skip to content

doc: factor out quick install tab for reuse #30451

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
Aug 24, 2025

Conversation

story645
Copy link
Member

@story645 story645 commented Aug 21, 2025

PR summary

This PR puts the tab set of install instructions into a stand alone file that's then included on the index, install/index, and getting started pages. The motivation is ensuring consistent quick install instructions across the docs. The end line is to exclude the toc-tree, but I don't know how to comment that w/o breaking the build.

xref: #29775

PR checklist

@github-actions github-actions bot added the Documentation: user guide files in galleries/users_explain or doc/users label Aug 21, 2025
@story645 story645 force-pushed the install-tab branch 3 times, most recently from 400de8d to b1697f7 Compare August 21, 2025 20:02
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.

I see no compelling reason that there should be an "other" tab in one place but not the others.

IMHO the toctree is misplaced in the other tab. Assuming we formally need a toctree on doc/index.rst we should put it below the tabs and make it :hidden:. The Link "For more detailed instructions, see the installation guide." goes to the top of the page that is toctreed, which is good enough. People don't need the subsections on the doc/index.rst entry page.

We can then decide whether we drop the "other" tab completely or just keep links to "other" installation methods, which is a subset of the current toctree, e.g.

grafik

But overall this is already an improvement, so I'll leave it up to you whether you want to do the additional modifications or just merge as is.

@story645
Copy link
Member Author

or just keep links to "other" installation methods, which is a subset of the current toctree, e.g.

I like this suggestion so I'll try to implement it tomorrow.

@story645
Copy link
Member Author

story645 commented Aug 22, 2025

Made changes, threw "for more detailed instructions see" into bottom of tab set page (that then opted out of for install guide) b/c usually want both.

Forgot to add toctree back as hidden 🤦‍♀️

@story645 story645 force-pushed the install-tab branch 2 times, most recently from eac8178 to 503a491 Compare August 22, 2025 22:40

.. end tab-set

For more detailed instructions, see the :doc:`installation guide </install/index>`.
Copy link
Member

Choose a reason for hiding this comment

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

I would leave out this sentence here and instead copy it to the two places where it's needed. This will remove the need for :end-before:, which IMHO makes inclusions harder to understand and more brittle.

Also note: If we follow my proposal from #29775 (comment), https://matplotlib.org/stable/users/getting_started/ will be removed, so that we may have just one location for this sentence in the future.

Copy link
Member Author

Choose a reason for hiding this comment

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

The sentence /tab set will probably get moved to the user guide quick start guide if it gets blended but changed it b/c it's not that big of a deal.

file and added tab set to getting started guide
@timhoffm timhoffm merged commit f1c54ac into matplotlib:main Aug 24, 2025
26 checks passed
@story645 story645 deleted the install-tab branch August 24, 2025 07:09
@timhoffm
Copy link
Member

@meeseeksdev backport to v3.10.5-doc

@timhoffm
Copy link
Member

@meeseeksdev backport to v3.10.x

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 24, 2025
timhoffm added a commit that referenced this pull request Aug 24, 2025
…451-on-v3.10.5-doc

Backport PR #30451 on branch v3.10.5-doc (doc: factor out quick install tab for reuse)
timhoffm added a commit that referenced this pull request Aug 24, 2025
…451-on-v3.10.x

Backport PR #30451 on branch v3.10.x (doc: factor out quick install tab for reuse)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation: user guide files in galleries/users_explain or doc/users Documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants