Skip to content
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

Update Python chapter on preferred markup language #243

Open
egpbos opened this issue Apr 13, 2021 · 4 comments
Open

Update Python chapter on preferred markup language #243

egpbos opened this issue Apr 13, 2021 · 4 comments

Comments

@egpbos
Copy link
Member

egpbos commented Apr 13, 2021

We have switched (back) from ReStructuredText (rst) to MarkDown as the default documentation format in the NLeSC Python template. This has historically been a slightly controversial choice in the Python ecosystem, where rst has been the norm (hence the original switch to rst in the template). Nowadays, MarkDown seems well supported as well. Since it is generally seen as easier to use, and we want to lower the barrier to people documenting their code as much as possible, it seems we should start recommending people to use MarkDown in the guide as well. We should probably also briefly motivate our choice there, for which the previous sentences could suffice. Further supportive material can be found in discussions via mail and in Teams chat of April 13th 2021. To give the full picture, the downsides should also be mentioned, so people can make their own well informed choice. Apart from the Python ecosystem dominance of rst mentioned already, rst may also scale better to larger documentation projects, like when writing large manuals. Furthermore, as highlighted by @merijn, MarkDown is a PITA to machine-read, whereas rst is not.

@bouweandela
Copy link
Member

We have switched (back) from ReStructuredText (rst) to MarkDown as the default documentation format in the NLeSC Python template.

The documentation in the template still seems to use .rst: https://github.com/NLeSC/python-template/blob/main/%7B%7Bcookiecutter.directory_name%7D%7D/docs/index.rst

Is this just about the package description on PyPI then? Or about the entire documentation?

For me, the reason to use markdown for the description of the package on PyPI is that you can conveniently re-use README.md that all GitHub projects have (by default?).

@bouweandela
Copy link
Member

Apparently these changes are planned in the Python template, not implemented yet: NLeSC/python-template#299.

@egpbos
Copy link
Member Author

egpbos commented May 18, 2021

Ah I see, my bad. Still up for discussion then, or decided already? Can someone from the generalization team pitch in? @fdiblen

@c-martinez
Copy link
Member

This looks like an interesting guide to link to? https://learn.scientific-python.org/development/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants