Skip to content

[WIP] Fix docs search #3150

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

[WIP] Fix docs search #3150

wants to merge 2 commits into from

Conversation

AmirhosseinPoolad
Copy link
Contributor

Updated the docs' python dependencies to fix the searching issues. Also had to fork one of the dependencies myself:

https://github.com/AmirhosseinPoolad/sphinxcontrib-domaintools

More information can be read in the commit messages.

Previous doc/README told users to install sphinx
globally using the distribution's package manager.
This commit changes that to only tell users to use
pip and optionally make a python virtual environment.
Update Sphinx version used for docs from 6 to 8.2.3 to fix the search
issues. Also forked the sphinxcontrib-domaintools dependency to fix a
RuntimeError with python versions higher than 3.7
@github-actions github-actions bot added docs Documentation lang-python Python code labels Jun 18, 2025
@AmirhosseinPoolad
Copy link
Contributor Author

AmirhosseinPoolad commented Jun 18, 2025

This worked fine locally but it seems to be that ReadTheDocs hijacks the sphinx search text-box (which works!) for their own search tool that doesn't work. Labeling the PR as WIP until I find a fix.

@AmirhosseinPoolad AmirhosseinPoolad changed the title Fix docs search [WIP] Fix docs search Jun 18, 2025
@AmirhosseinPoolad
Copy link
Contributor Author

At least until 2023, ReadTheDocs did not generate search indices for PR builds. This is also supported by the fact that the docs build for this PR took 3 minutes vs 10 minutes for the master branch.

Unfortunately this all means that I have no way of testing if the search will actually work on the hosted docs or not. It does work locally though.

@SamuelHo10
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation lang-python Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants