KwanLab / Autometa

Autometa: Automated Extraction of Genomes from Shotgun Metagenomes
https://autometa.readthedocs.io
Other
40 stars 15 forks source link

Migrate documentation from reStructuredText to MyST Markdown #240

Open evanroyrees opened 2 years ago

evanroyrees commented 2 years ago
  1. Convert documentation to markdown format for ability to copy code blocks by simply clicking the copy button that appears in the code block rather than having to drag the cursor to copy.

I think there may be tools out there to perform this automagically?

  1. Add examples gallery - sphinx-gallery
jason-c-kwan commented 2 years ago

So would converting still allow integration with readthedocs.org?

evanroyrees commented 2 years ago

Yes, this is mentioned in readthedocs. They have put together a guide to do just this

kaw97 commented 1 year ago

I don't think converting to markdown is the best way to do this. I successfully converted to markdown, but it broke autodoc, which is hard-coded for rst. This suggests a workaround, but I think I found a better solution: https://myst-parser.readthedocs.io/en/stable/faq/index.html#howto-autodoc

There is a sphinx extension called sphinx-copybutton.

I added it to my docker image and the .conf file and it appears to be working, which solved the problems I mentioned to Sidd last week. https://stackoverflow.com/questions/39187220/how-to-add-a-copy-button-in-the-code-blocks-for-rst-read-the-docs

Next, getting sphinx-gallery working and to make images/animations of it running.

kaw97 commented 1 year ago

Completed with pull request #293