Thanks to visit codestin.com
Credit goes to github.com

Skip to content

changed to RST #25594

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 5 commits into from
Apr 17, 2023
Merged

changed to RST #25594

merged 5 commits into from
Apr 17, 2023

Conversation

Higgs32584
Copy link
Contributor

created draft pull request for issue#25582, documentation

#25582

@@ -0,0 +1,332 @@
.. redirect-from:: /tutorials/toolkits/axes_grid
Copy link
Member

Choose a reason for hiding this comment

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

Should this also be a move?

@tacaswell tacaswell added this to the v3.8.0 milestone Mar 31, 2023
@tacaswell
Copy link
Member

Even though this is documentation, it can not be backported because it relies on the re-organization.

@Higgs32584
Copy link
Contributor Author

Apologies! This was more so a draft for the moment. I was not planning on committing a .git ignore

@Higgs32584
Copy link
Contributor Author

What I am trying to resolve is the fact that the three changed files download as full commented blocks. I initially was planning on just reformatting the file, but it was suggested that I change the files to .rst.

If I was going to do that where would I move it to?

@tacaswell
Copy link
Member

github is detecting 2 renames of .py -> .rst and reporting one wholly new .rst. I suspect that means you missing a git rm <file name> command.

@Higgs32584
Copy link
Contributor Author

I do not know what that is the case. I did not modify the location.
https://github.com/matplotlib/matplotlib/blob/main/galleries/users_explain/toolkits/axes_grid.py

@jklymak
Copy link
Member

jklymak commented Mar 31, 2023

When you rename a file, you should use "git mv" so git knows that is what you did versus delete a file and add a new one. https://git-scm.com/docs/git-mv

@Higgs32584
Copy link
Contributor Author

@jklymak Ok will do, thank you!

@Higgs32584
Copy link
Contributor Author

Higgs32584 commented Mar 31, 2023

would this make a solid index.rst for

C:/Users/mjhig/.vscode/bob/matplotlib/galleries/users_explain/toolkits



.. _tutorials-toolkits:

.. redirect-from:: /tutorials/toolkits

Toolkits
--------

These tutorials cover toolkits designed to extend the functionality
of Matplotlib in order to accomplish specific goals.
.
.. toctree::
    :maxdepth: 2

    axes_grid.rst
    axisartist.rst
    mplot3d.rst
    

.gitignore Outdated
@@ -1,112 +0,0 @@
#########################################
Copy link
Member

Choose a reason for hiding this comment

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

Deleting our .gitignore is also not something we can merge!

@Higgs32584
Copy link
Contributor Author

I am very sorry I can redo the pull request if necessary, I am sorry about the .gitignore it was not meant to be committed, but now that the changes are staged it got really messy, I can close this pull request if you want. It was getting annoying trying to explain the code, so I made a pull request to get feedback.

@ksunden
Copy link
Member

ksunden commented Apr 1, 2023

FYI, you can tweak your description a bit to automatically link the issue by using special codewords like "Closes #XXXXX". I have added it to this PR manually, but for future reference.

https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

As for the gitignore stuff, consider rebasing, no need to start a new PR if the overall change is still wanted (I honestly haven't taken a close look), it can be done here:

https://matplotlib.org/stable/devel/development_workflow.html#rewriting-commit-history

@Higgs32584
Copy link
Contributor Author

Can someone tell me if I put the .rst files in the right place? Also I'm wondering if the index.rst works to

@jklymak
Copy link
Member

jklymak commented Apr 1, 2023

No we can't tell you if you have put it in the right place because you haven't committed it. You may want to carefully go through our guide to git and Github, it is actually relatively decent: https://matplotlib.org/stable/devel/development_workflow.html. Let us know if parts of it are not clear.

@Higgs32584
Copy link
Contributor Author

@jklymak ok I will!! I apologize, I haven’t used GitHub with this much version control before! I have only done small projects before! I really look forward to completing my contribution. Thank you!

@Higgs32584
Copy link
Contributor Author

accident

@Higgs32584 Higgs32584 reopened this Apr 7, 2023
@Higgs32584 Higgs32584 marked this pull request as ready for review April 8, 2023 16:29
@jklymak
Copy link
Member

jklymak commented Apr 9, 2023

@Higgs32584 This is unlikely to be building properly though for some reason CI is not running for the job. But the rst files must be formatted like rst files. You probably also have to git remove the README.txt from the source directory.

You should be able to build and check this locally using make html-skip-subdirs

@melissawm
Copy link
Member

Hello @Higgs32584 - let me know if you'd like to connect and come up with a plan for this ☺️ We can chat over at gitter or set up a meeting over zoom. Cheers!

@Higgs32584
Copy link
Contributor Author

Ok, I will! I just did not know how to set up a circle CI pipeline

@melissawm
Copy link
Member

I think this is on us @Higgs32584 - see #25672 (takeaway is don't worry about it πŸ˜„ )

@Higgs32584
Copy link
Contributor Author

Hi, is there anything else that needs to be done? melissawm

Copy link
Member

Choose a reason for hiding this comment

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

I think these still need to strip the """ at the beginning and end, or it won't build.

Copy link
Contributor Author

@Higgs32584 Higgs32584 Apr 13, 2023

Choose a reason for hiding this comment

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

my bad! removed quotations! Anything else I can do? Thank you for being so patient!
@tacaswell
@jklymak
@melissawm

@Higgs32584 Higgs32584 requested review from tacaswell and jklymak April 13, 2023 19:48

Here you can find examples and explanations of how to use various toolkits available in Matplotlib.

Axes Artist
Copy link
Member

Choose a reason for hiding this comment

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

Is there a good reason to not just have these in one TOC?

Otherwise this looks good!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I guess that is how I got it to look the way it did before

Copy link
Member

Choose a reason for hiding this comment

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

Before it was a bunch of broken sphinx gallery thumbnails. https://matplotlib.org/devdocs/users/explain/toolkits/index.html I don't think anything is gained by having a title with almost the same thing written beneath it as a one-entry table of contents.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see, but how do you get it to generate the same way as before?

Copy link
Member

Choose a reason for hiding this comment

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

"The same ways as before" was just three broken thumbnails (https://matplotlib.org/devdocs/users/explain/toolkits/index.html). Why do you want that?

If you want something graphical, you could create an rst page with select images that are inside the tutorials. If you want the cards that are used for sphinx gallery, you could copy their style and use them on this rst page. You could also perhaps do something with sphinx-design.

If you decide to do this (which I'm not asking for, I'm just asking for you not to include three subheadings that each contain a table of contents) look at examples in the source code of where images have been included.

@Higgs32584 Higgs32584 reopened this Apr 17, 2023
@Higgs32584
Copy link
Contributor Author

They need a computer science on git conflict theory

@Higgs32584 Higgs32584 requested a review from jklymak April 17, 2023 21:33
@jklymak
Copy link
Member

jklymak commented Apr 17, 2023

/home/circleci/project/doc/users/explain/toolkits/axisartist.rst:563: WARNING: Bullet list ends without a blank line; unexpected unindent.

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.

Thanks for working through this!

@jklymak jklymak merged commit 690884f into matplotlib:main Apr 17, 2023
@rcomer
Copy link
Member

rcomer commented Apr 18, 2023

Congratulations on your first PR merged into Matplotlib @Higgs32584!

@Higgs32584
Copy link
Contributor Author

Thank you! @rcomer

@Higgs32584 Higgs32584 deleted the documentation_1 branch April 18, 2023 12:56
eslothower pushed a commit to eslothower/matplotlib that referenced this pull request May 3, 2023
Made user_explain/toolkits an rst-only gallery entry.  

Co-authored-by: Higgs32584 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

[Doc]: Commented Out Code in Downloadable Examples for Toolkits Tutorials
6 participants