Closed
Labels
documentationImprovements or additions to documentation
Description
A few folks now have run into gotchas or had confusion about how to use MyST on readthedocs. We should add short instructions for how to configure a repository to do so. I think probably this just means including instructions on how to install the right packages on RTD.
Reacted by Benjamin Melançon, luk-f-a and Juan Luis Cano Rodríguez
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Activity
chrisjsewell commentedon Jun 2, 2020
I think probably just make sphinx a core requirement, rather than an extra requirement will fix this. I originally wanted to keep sphinx an extra when this package contained aspects of the markdown parsing, which is not really the case any more, so I doubt there is really any use for it which doesn't include sphinx
mlncn commentedon Jun 3, 2020
With nothing but
myst_parser[sphinx]in requirements.txt i tried this morning and got this build error:And essentially the same error when i initially tried with a dash not an underscore, or without the
[sphinx]part, whether myst-parser or myst_parser.Should i try to include the git repository directly with
git+https://github.com/executablebooks/MyST-Parser.git?chrisjsewell commentedon Jun 3, 2020
@mlncn it sounds like you have not created a
readthedocs.ymlfor your repository, to configure how readthedocs build your documentation: https://docs.readthedocs.io/en/latest/config-file/v2.html, e.g.:mlncn commentedon Jun 3, 2020
@chrisjsewell ah! Thank you. Apologies, this project was set up in 2018 (cloned from an even earlier one) and i'm switching to MyST after your helpful note in ReCommonMark's queue. The conversion worked!
So i can vouch for the contents of my pull request, with the exception of the
conf.pyfile— pretty sure at least an emptydef setup(app):line will be needed at the bottom but i was trying to go minimal. Maybe the instructions just have to say to use sphinx-quickstart and modify. Will try to test later if no one else gets to it.Thanks again!
astrojuanlu commentedon Jul 13, 2026
Do people still find gotchas or confusion about how to use MyST on RTD to this day?
(To note: GitHub search gives 511k
conf.pyfiles, of which 31.8k containmyst_parser💪🏼)chrisjsewell commentedon Nov 10, 2026
Sphinx is now a regular dependency of myst-parser, so adding
myst-parserto your Read the Docs requirements (plusextensions = ["myst_parser"]in conf.py) is all that's needed. Closing; please open a new issue if you hit a specific RTD problem.