-
Notifications
You must be signed in to change notification settings - Fork 197
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
Usage with RTD - sphinx>=2 requirement was optional? #139
Comments
Hmmm... Lines 40 to 52 in f32bd38
Ah, so MyST-Parser does not require sphinx directly unless specifying it like Suggestions on what to do here? For now, I'll go to Z2JH and make it explicit that we want |
Hey @consideRatio, thanks for the feedback. As mentioned in the documentation (https://myst-parser.readthedocs.io/en/latest/using/intro.html#installation) you should use the |
@chrisjsewell excellent okay I understand, I'll go for And here I'm confirming what you say makes sense: Lines 1 to 10 in f32bd38
I'm considering if there is a concrete action point following this. I found the documentation to be good already, and my issue was mostly that I was outdated with the documentation. But perhaps having I think what makes sense is to add an inline comment saying that the |
Ok no problem, I can add a comment in the setup.py 👍 |
@choldgraf and @chrisjsewell for your information, watch out for this. # with sphinx==1.* already installed as on RTD, this results in sphinx==1.*
pydata-sphinx-theme # depends on sphinx
myst-parser[sphinx] # depends on sphinx<3,>=2 # with sphinx==1.* already installed as on RTD, this results in sphinx==2.*
myst-parser[sphinx] # depends on sphinx<3,>=2
pydata-sphinx-theme # depends on sphinx |
I was about to open a separate issue for documenting the simplest way to use MyST on ReadTheDocs— i probably still should. 'Cause yeah i saw this documentation itself is hosted on readthedocs but i couldn't follow how, so knew there had to be simpler setups. So thrilled to know about this project, thanks Chris! |
RTD barfs otherwise, from executablebooks/MyST-Parser#139
Read the docs is a bit messy to work with sometimes, because it comes with sphinx<2 pre-installed, so when we run
pip install -r doc-requirements.txt
it will settle for version 1 unless a dependency forces is to go higher.But, it seems MyST-Parser have a hard dependency of sphinx>1 due to the following error:
Due to this, I suggest to add the requirement of sphinx >=2 directly in MyST-Parser.
Z2JH setup that broke
doc-requirements.txt
.readthedocs.yml
The text was updated successfully, but these errors were encountered: