-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Outdated versions of sphinx and other dependencies being installed (with pyproject.toml
), search stuck
#10263
Comments
Hi, this is to keep backwards compatibility with old projects, see https://docs.readthedocs.io/en/stable/build-default-versions.html#python. I can remove your project from that "feature", so it installs the latest version by default. But your main problem about the search not working is because of readthedocs/sphinx_rtd_theme#1452, please follow the workaround from readthedocs/sphinx_rtd_theme#1452 (comment). |
Done https://readthedocs.org/projects/emaworkbench/builds/20258938/ |
Also seeing your PR quaquel/EMAworkbench#242, note that search options work over the final HTML pages produced by your build https://docs.readthedocs.io/en/stable/config-file/v2.html#search-ranking, not the source files or files that are in your repo and aren't included in the final build of your docs. |
Thanks a lot for getting back!
Thanks! One small note, it still installs
Thanks, this fixes our problem! We started teaching a course today, so over a hundred students thank you! CC @quaquel. |
I have forgotten about that, looks like this was done to break projects using As a workaround, you can install the required version of setuptools just before installing your requirements. python:
install:
- requirements: docs/setuptools.txt
- method: pip
path: .
extra_requirements:
- docs |
Problem description
We've encountered an issue with Read the Docs configuration where search is not functioning properly, likely due to incompatible versions of
sphinx
,sphinx-rtd-theme
, and other dependencies being installed. Our dependencies are specified in an optionaldocs
dependency in apyproject.toml
file, and our.readthedocs.yaml
includes this:Then, our
.readthedocs.yaml
includes this:However, our Read the Docs build log first installs
sphinx<2
andsphinx-rtd-theme<0.5
, and only after that, in a separate step, our actual.[docs]
optional dependencies, which includesphinx-6.1.3
andsphinx-rtd-theme-1.2.0
. This issue is detailed in the PR quaquel/EMAworkbench#242.We've also tried adding a
docs/requirements.txt
file specifically for Read the Docs, but it still installs outdated versions of the dependencies. We're following the documentation, but search still doesn't work.Expected behavior
The Read the Docs build should install the correct versions of
sphinx
,sphinx-rtd-theme
, andreadthedocs-sphinx-ext
as specified in thepyproject.toml
file, and search should function correctly.Steps to reproduce
pyproject.toml
file with optionaldocs
dependencies as shown above..readthedocs.yaml
as shown above.sphinx
,sphinx-rtd-theme
and other dependenciesEnvironment details
Additional context
The text was updated successfully, but these errors were encountered: