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

Switch Markdown parser from Recommonmark to MyST-Parser #104

Merged
merged 6 commits into from
Aug 18, 2022

Conversation

clenk
Copy link
Contributor

@clenk clenk commented Aug 15, 2022

Description

Recommonmark is what we use to parse our markdown documentation for Sphinx, but it is no longer maintained. The recommendation is to use MyST-Parser instead, hence this pull request. MyST-Parser doesn't like links to .html so I changed them to .md. This also has the side benefit that the links will also work when viewing the .md on GitHub.

The other feature this allows is using Markdown tables. Recommonmark didn't support them so in many places we used bulleted lists instead of tables. In one instance we formatted the table as code, so I switched it to be parsed as a table.

Before:
image

After:
image

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Built the docs after the changes, verified that pages still displayed correctly and links work.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Also remove reference to video that no longer exists.
MyST-Parser requires links to be defined for .md files, which will be
converted to .html by sphinx.

This change also allows links to work when viewing the .md files on
GitHub in a web browser.
MyST-Parser can display markdown tables correctly, unlike Recommonmark.
@elegantmoose elegantmoose merged commit 510d0b9 into master Aug 18, 2022
@elegantmoose elegantmoose deleted the clenk/virts-2948/docs-myst-parser branch August 18, 2022 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants