choderalab / software-development

A primer on software development best practices for computational chemistry
255 stars 76 forks source link

How to: documentation #16

Closed bas-rustenburg closed 7 years ago

bas-rustenburg commented 7 years ago

How to write documentation for scientific software. Discuss tools like read the docs, sphinx, et cetera.

jchodera commented 7 years ago

Sphinx material:

jchodera commented 7 years ago

autoprotocol has a great example of good changelog documentation using RTD.

bas-rustenburg commented 7 years ago

Thoughts and links on this topic in a nutshell:

There are many tools that can be used to write documentation. The easiest to start with is Github wiki which uses markdown syntax just like the rest of github.

If you need something slightly more powerful, consider using sphinx. Hosting a sphinx project can be tricky on its own, but is almost trivial if you have a public repository, since you can use readthedocs.

If you're using conda for your code, you may want to check out a step to step guide on setting up a conda project with read the docs, here.

bas-rustenburg commented 7 years ago

https://guides.github.com/features/wikis/ Helpful guide on Github wikis .

bas-rustenburg commented 7 years ago

A template for sphinx/read the docs https://github.com/readthedocs/template

bas-rustenburg commented 7 years ago

wiki example: https://github.com/d3/d3/wiki

Sphinx examples: https://github.com/choderalab/yank/tree/master/docs https://github.com/pymc-devs/pymc/tree/master/docs

jchodera commented 7 years ago

Addressed in #28