Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
MNT: re-organize galleries under one subdir#25209
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
| files in:file:`plot_types/`,:file:`examples/` and:file:`tutorials/`. | ||
| These sources consist of python scripts that haveReST_ documentation built | ||
| into their comments. See:ref:`writing-examples-and-tutorials` below. | ||
| :file:`doc/tutorials` are generated by the `Sphinx Gallery`_ from python files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This file is the only user-facing change.
004c5cc to87da4d5Comparetacaswell commentedFeb 14, 2023
👍🏻 in principle. |
416364c to7fcc80aComparetimhoffm commentedFeb 15, 2023
"examples" is a better name than "gallery", because it's more semantic (also |
jklymak commentedFeb 15, 2023
The change here just makes the private name the same as the public. I'm not sure if there is a mechanism to change the public name. If there is, changing the private is just a one-line "git mv" and a few edit in the dev docs and the conf.py. We could also keep the private and public names different (that was not really the point here) but I think it is needlessly confusing. |
timhoffm commentedFeb 16, 2023
Slight preference for doing this if you want to move forward without going into "changing the public name" right now. Having "gallery" as the internal name and url, but resulting in a page titled "Examples" which is under the menu entry "Examples" is still confusing. The only consistent naming option is all "examples". |
7fcc80a to20eda30Comparejklymak commentedFeb 20, 2023
The structure is now |
ksunden commentedFeb 21, 2023
Unfortunately#25270 conflicted the animation examples (and a couple README's)... should be relatively trivial (probably for all of the animation ones at least it is the grammatical change from Also, am I misremembering the call? I thought the conclusion of that conversation was that we preferred the term "examples" over "gallery" for the repo paths (and desired doing redirects to make the url match as "examples", rather than its current "gallery", though I can acknowledge that much may be out of scope for now). The extra level of heirarchy is fine, and I don't mind that being called "galleries", but for those called "examples" now, keeping it so was my impression of the consensus. |
20eda30 to69cc6a1Comparejklymak commentedFeb 21, 2023
Sorry, I somehow messed up the last push. |
03197dc toc5c7eebComparec5c7eeb tocca402eComparecca402e toc1fad31CompareQuLogic commentedFeb 23, 2023
It looks like |
c1fad31 toddc4079Comparejklymak commentedFeb 23, 2023
Phew, we sure repeat the same exceptions in a lot of places.... |
ddc4079 to01cc2caComparejklymak commentedFeb 23, 2023
The pre-commit isort block doesn't hit |
01cc2ca to853b3f9CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
853b3f9 tofe53160Comparejklymak commentedFeb 24, 2023
Thanks for everyone's patient reviews... |
Uh oh!
There was an error while loading.Please reload this page.
PR Summary
This reorganizes all the galleries (examples, tutorials, plot_types) under one subdirectory. Also renames examples->gallery so that it is the same name as the gallery it makes.
So now sphinx-gallery looks in
/galleries/gallery,/galleries/tutorials/and/galleries/plot_types.The goal here is that now thatsphinx-gallery/sphinx-gallery#1071 is in, we may have more subdirectories run through sphinx gallery (perhaps many more), and it pollutes the top-level file hierarchy to have a bunch of these.
Note that no examples were changed by this, and there should be no difference on the doc page (except in the "writing Documentation" page where the file names have changed).
PR Checklist
Documentation and Tests
pytestpasses)Release Notes
.. versionadded::directive in the docstring and documented indoc/users/next_whats_new/.. versionchanged::directive in the docstring and documented indoc/api/next_api_changes/next_whats_new/README.rstornext_api_changes/README.rst