-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
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
MNT: re-organize galleries under one subdir #25209
Conversation
files in :file:`plot_types/`, :file:`examples/` and :file:`tutorials/`. | ||
These sources consist of python scripts that have ReST_ 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
to
87da4d5
Compare
👍🏻 in principle. |
416364c
to
7fcc80a
Compare
"examples" is a better name than "gallery", because it's more semantic (also |
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. |
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
to
20eda30
Compare
The structure is now |
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
to
69cc6a1
Compare
Sorry, I somehow messed up the last push. |
03197dc
to
c5c7eeb
Compare
c5c7eeb
to
cca402e
Compare
cca402e
to
c1fad31
Compare
It looks like |
c1fad31
to
ddc4079
Compare
Phew, we sure repeat the same exceptions in a lot of places.... |
ddc4079
to
01cc2ca
Compare
The pre-commit isort block doesn't hit |
01cc2ca
to
853b3f9
Compare
853b3f9
to
fe53160
Compare
Thanks for everyone's patient reviews... |
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 that sphinx-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
pytest
passes)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.rst
ornext_api_changes/README.rst