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 to MyST Parser #36

Closed
jpmckinney opened this issue Sep 19, 2020 · 4 comments
Closed

Switch to MyST Parser #36

jpmckinney opened this issue Sep 19, 2020 · 4 comments

Comments

@jpmckinney
Copy link
Member

jpmckinney commented Sep 19, 2020

We're currently using my fork of recommonmark and a specific commit of commonmark.py (until > 0.9.1 is released), because the released versions don't work with Sphinx.

https://myst-parser.readthedocs.io/en/latest/index.html was built in 2020, and seems to work. It uses https://pypi.org/project/markdown-it-py/ instead of commonmark.py. We can see if anyone has written about their switch.

@jpmckinney jpmckinney changed the title Consider switch to MyST Consider switching to MyST Jan 28, 2021
@jpmckinney
Copy link
Member Author

jpmckinney commented Feb 12, 2021

Follow-up: Switch from recommonmark to MyST-Parser in:

@jpmckinney
Copy link
Member Author

jpmckinney commented Feb 16, 2021

Steps from open-contracting/standard#1213

Done for:

  • standard (need to upgrade MyST-Parser)
  • standard_profile_template
  • infrastructure Switch to MyST Parser infrastructure#302
  • european-union
  • government-procurement-agreement
  • public-private-partnerships (switch RST to Markdown tables)

@jpmckinney
Copy link
Member Author

jpmckinney commented Mar 20, 2021

Should also fix links to headings. Our options:

General process, matchind *.md files:

  1. Check no unusual link formats: \] +\(
  2. Check no fragments with non-/-terminated paths: \]+\((?!http)\S+[^/]#
  3. Perform substitution: \]+\((?!http)\.\./(\S+)/# for ]($1.md#
  4. Build docs and fix warnings

Done for:

  • standard
  • standard_profile_template
  • infrastructure Switch to MyST Parser infrastructure#302
  • european-union
  • government-procurement-agreement
  • public-private-partnerships (skipped: uses too many anchors in tables like #release-schema.json,,contracts/0/agreedMetrics)

@jpmckinney
Copy link
Member Author

All done!

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

No branches or pull requests

1 participant