You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Convert documentation source files from ReStructuredText to Markdown #2928
Currently, some documentations are written in Markdown while some are in ReStructuredText. I think it's better to use a consistent format so that new contributors won't be confused.
Check the README Syntax
GitHub is a bit forgiving when it comes to the RST syntax in the README, but PyPI is not. To check the README syntax, visit the PyGMT TestPyPI release history, select the latest commit, and review the left sidebar and project description for any errors.
Thus, I am wondering whether PyPI expects ReStructuredText or there are some issues with Markdown.
Did people have specific reasons to use ReStructuredText for these files when writing them?
These must be some historical reasons. If you're familiar with both ReST and Markdown, you will see that ReST is more powerful and is suitable for writing technical documentation for big projects. Instead, the original Markdown syntax is much simpler and is most suitable for writing short documentation like a blog post. However, in recent years, the MyST Markdown has been mature enough to be as powerful as ReST and is becoming popular.
Check the README Syntax
GitHub is a bit forgiving when it comes to the RST syntax in the README, but PyPI is not. To check the README syntax, visit the PyGMT TestPyPI release history, select the latest commit, and review the left sidebar and project description for any errors.
Thus, I am wondering whether PyPI expects ReStructuredText or there are some issues with Markdown.
Maybe I will find the time to work on rewriting the README, as I am already working on moving the compatibility table to a separate file. In this context, we also discussed rewriting this table in Markdown (#2858 (comment) and #2858 (comment)).
Maybe I will find the time to work on rewriting the README, as I am already working on moving the compatibility table to a separate file. In this context, we also discussed rewriting this table in Markdown (#2858 (comment) and #2858 (comment)).
I think we need to address #2863 and #2858 before working on the README file.
Maybe I will find the time to work on rewriting the README, as I am already working on moving the compatibility table to a separate file.
@yvonnefroehlich Now we can start working on the README file. Let me know if you'd like to work on it. Just in case you didn't know yet, pandoc is a tool that can convert ReST to Markdown automatically. The command is:
pandoc README.rst -t markdown
Of course, after the pandoc conversion, you may still need to make some manual edits to make it better.
Maybe I will find the time to work on rewriting the README, as I am already working on moving the compatibility table to a separate file.
@yvonnefroehlich Now we can start working on the README file. Let me know if you'd like to work on it. Just in case you didn't know yet, pandoc is a tool that can convert ReST to Markdown automatically. The command is:
pandoc README.rst -t markdown
Of course, after the pandoc conversion, you may still need to make some manual edits to make it better.
Thanks @seisman for pointing out this tool 🙂. I just started working on converting the REAMDE to markdown in PR #3059.
Activity
yvonnefroehlich commentedon Dec 28, 2023
I agree that we should work towards using a consistent format (when possible).
Did people have specific reasons to use ReStructuredText for these files when writing them?
Regarding
README.rst, we have this in the Maintainers Guide (https://www.pygmt.org/dev/maintenance.html#check-the-readme-syntax):Thus, I am wondering whether PyPI expects ReStructuredText or there are some issues with Markdown.
seisman commentedon Dec 28, 2023
These must be some historical reasons. If you're familiar with both ReST and Markdown, you will see that ReST is more powerful and is suitable for writing technical documentation for big projects. Instead, the original Markdown syntax is much simpler and is most suitable for writing short documentation like a blog post. However, in recent years, the MyST Markdown has been mature enough to be as powerful as ReST and is becoming popular.
PyPI started to support Markdown (https://packaging.python.org/en/latest/guides/making-a-pypi-friendly-readme/#creating-a-readme-file) since 2018 (https://blog.thea.codes/github-flavored-markdown-on-pypi/).
yvonnefroehlich commentedon Jan 2, 2024
Maybe I will find the time to work on rewriting the README, as I am already working on moving the compatibility table to a separate file. In this context, we also discussed rewriting this table in Markdown (#2858 (comment) and #2858 (comment)).
seisman commentedon Jan 3, 2024
I think we need to address #2863 and #2858 before working on the README file.
seisman commentedon Feb 19, 2024
Done in #3056.
@yvonnefroehlich Now we can start working on the README file. Let me know if you'd like to work on it. Just in case you didn't know yet, pandoc is a tool that can convert ReST to Markdown automatically. The command is:
Of course, after the pandoc conversion, you may still need to make some manual edits to make it better.
yvonnefroehlich commentedon Feb 20, 2024
Thanks @seisman for pointing out this tool 🙂. I just started working on converting the REAMDE to markdown in PR #3059.