Usage with RTD - sphinx>=2 requirement was optional?
See original GitHub issueRead 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:
File "/home/docs/checkouts/readthedocs.org/user_builds/zero-to-jupyterhub/envs/latest/lib/python3.7/site-packages/myst_parser/sphinx_renderer.py", line 16, in <module>
from sphinx.project import Project
Due to this, I suggest to add the requirement of sphinx >=2 directly in MyST-Parser.
Z2JH setup that broke
doc-requirements.txt
pydata_sphinx_theme
pyyaml
myst_parser
sphinx-autobuild
sphinx-copybutton
sphinx<3
.readthedocs.yml
# Configuration on how ReadTheDocs (RTD) builds our documentation
# ref: https://readthedocs.org/projects/zero-to-jupyterhub/
# ref: https://docs.readthedocs.io/en/stable/config-file/v2.html
# Required (RTD configuration version)
version: 2
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/source/conf.py
# Optionally build your docs in additional formats such as PDF and ePub
formats: all
# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.7
install:
# WARNING: This requirements file will be installed without the pip
# --upgrade flag in an existing environment. This means that if a
# package is specified without a lower boundary, we may end up
# accepting the existing version.
#
# ref: https://github.com/readthedocs/readthedocs.org/blob/0e3df509e7810e46603be47d268273c596e68455/readthedocs/doc_builder/python_environments.py#L335-L344
- requirements: doc/doc-requirements.txt
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Readthedocs - need sphinx 2.1+ to process the :async: option
I created docs/requirements.txt file in my project containing: sphinx>=2.1.0 and in RTD > admin > advanced settings I have entered: ...
Read more >Development - Read the Docs Sphinx Theme
Documentation authors can decide which theme release works best for their project based on required browser/operating system combinations or dependency ...
Read more >An idiot's guide to Python documentation with Sphinx and ...
Create a newline delimited list of package names to be installed from pip in docs/requirements.txt; Navigate to the Advanced Settings of your ...
Read more >View raw - Read the Docs @ INFN CLOUD
... sphinxcontrib-websupport in /rtd/readthedocs.org/user_builds/admins-guides/envs/latest/lib/python3.6/site-packages (from sphinx<2) (1.2.4) Requirement ...
Read more >Read the docs not building (#8) · Issues - GitLab
Use tasks to break down this issue into smaller parts. ... sphinx<2 sphinx-rtd-theme<0.5 readthedocs-sphinx-ext<1.1 Requirement already ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok no problem, I can add a comment in the setup.py 👍
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!