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

Migrate documentation from reStructuredText to MyST Markdown #240

Open
evanroyrees opened this issue Feb 18, 2022 · 4 comments
Open

Migrate documentation from reStructuredText to MyST Markdown #240

evanroyrees opened this issue Feb 18, 2022 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@evanroyrees
Copy link
Collaborator

evanroyrees commented Feb 18, 2022

  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 evanroyrees added the documentation Improvements or additions to documentation label Feb 18, 2022
@jason-c-kwan
Copy link
Collaborator

So would converting still allow integration with readthedocs.org?

@evanroyrees evanroyrees changed the title Convert docs from rst to md Migrate documentation from reStructuredText to MyST Markdown Feb 18, 2022
@evanroyrees
Copy link
Collaborator Author

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

@evanroyrees evanroyrees added the good first issue Good for newcomers label Feb 18, 2022
@kaw97 kaw97 self-assigned this Sep 12, 2022
@kaw97
Copy link
Collaborator

kaw97 commented Sep 20, 2022

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
Copy link
Collaborator

kaw97 commented Mar 20, 2023

Completed with pull request #293

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants