Skip to content

Dokumentation Link and rename README #26994

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

lukasb1b
Copy link

@lukasb1b lukasb1b commented Oct 4, 2023

Making the README an md file. Change the link to the right one and making it a hyperlink.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a week or so, please leave a new comment below and that should bring it to our attention. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@lukasb1b lukasb1b marked this pull request as ready for review October 4, 2023 11:05
Copy link
Member

@story645 story645 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 the PR!

This document should be a .rst file because all our internal README files are .rst files

@lukasb1b
Copy link
Author

lukasb1b commented Oct 5, 2023

I dont get the error

@@ -4,5 +4,5 @@ About Matplotlib Testing Infrastructure
Information on the testing infrastructure is provided in
the Testing section of the Matplotlib Developers’ Guide:

* https://matplotlib.org/devel/testing.html
* [Website](https://matplotlib.org/stable/devel/testing.html)
Copy link
Member

@story645 story645 Oct 5, 2023

Choose a reason for hiding this comment

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

this page does not exist -> devel and stable are two versions of the same document

Copy link
Member

Choose a reason for hiding this comment

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

https://matplotlib.org/devdocs/devel/testing.html is probably where this should be pointed.

@tacaswell
Copy link
Member

install_data(
'README',
'Courier10PitchBT-Bold.pfb',
'cmr10.pfb',
'mpltest.ttf',
'test_nbagg_01.ipynb',
install_tag: 'tests',
install_dir: py3.get_install_dir(subdir: 'matplotlib/tests/'))
tells meson about this file so if we rename it we have to update it there too. It is also possible that we include this file in the documentation.

I am -0 on adding the extension, README files without an extension are not uncommon.

The other thing that is concerning as that the rst reference is the source of https://matplotlib.org/devdocs/devel/coding_guide.html not the built page referenced.

@@ -4,5 +4,5 @@ About Matplotlib Testing Infrastructure
Information on the testing infrastructure is provided in
the Testing section of the Matplotlib Developers’ Guide:

* https://matplotlib.org/devel/testing.html
* [Website](https://matplotlib.org/stable/devel/testing.html)
* <mpl_source_dir>/doc/devel/coding_guide.rst (equivalent, but in reST format)
Copy link
Member

Choose a reason for hiding this comment

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

@timhoffm
Copy link
Member

timhoffm commented Oct 5, 2023

I want to point out that we currently have no consistent type and naming scheme for READMEs:

image

I did not check all their content, but at least some of the README.txt files are ReST formatted.


I don't think it's particularly important to have consistency here, but if we do want that, I'd be -0.5 on ReST. ReST has its merits for complex documents. But the READMEs are quite simple, not part of the doc build and often read as plain text.

@QuLogic
Copy link
Member

QuLogic commented Oct 5, 2023

But the READMEs are quite simple, not part of the doc build and often read as plain text.

Not entirely true. The ones in the galleries are used by sphinx-gallery, and must be README.txt or README.rst (or actually whatever source_suffix is in the doc config), and should be reST unless we start using MyST.

@story645 story645 added the Documentation: API files in lib/ and doc/api label Oct 6, 2023
@timhoffm
Copy link
Member

timhoffm commented Oct 8, 2023

I think README is a misnomer for the gallery header files. I’ve opened sphinx-gallery/sphinx-gallery#1209 to see whether the can be changed to something more telling/accurate.

But that’s orthogonal to this PR.

@@ -4,5 +4,5 @@ About Matplotlib Testing Infrastructure
Information on the testing infrastructure is provided in
the Testing section of the Matplotlib Developers’ Guide:

* https://matplotlib.org/devel/testing.html
* <mpl_source_dir>/doc/devel/coding_guide.rst (equivalent, but in reST format)
- `Website <https://matplotlib.org/devdocs/devel/testing.html>`_
Copy link
Member

Choose a reason for hiding this comment

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

I’m not convinced that ReST formatting is an advantage here. I assume that this file will be mostly opened as a source file in an editor, in which case plain URLs are easier to read than ReST formatted URLs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Waiting for author
Development

Successfully merging this pull request may close these issues.

5 participants