Autometa icon indicating copy to clipboard operation
Autometa copied to clipboard

Migrate documentation from reStructuredText to MyST Markdown

Open evanroyrees opened this issue 3 years ago • 4 comments

  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

evanroyrees avatar Feb 18 '22 16:02 evanroyrees

So would converting still allow integration with readthedocs.org?

jason-c-kwan avatar Feb 18 '22 16:02 jason-c-kwan

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

evanroyrees avatar Feb 18 '22 16:02 evanroyrees

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 avatar Sep 20 '22 19:09 kaw97

Completed with pull request #293

kaw97 avatar Mar 20 '23 20:03 kaw97