Skip to content
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

Fix search on readthedocs.org #6821

Merged
merged 4 commits into from
Sep 5, 2023
Merged

Fix search on readthedocs.org #6821

merged 4 commits into from
Sep 5, 2023

Conversation

andreasabel
Copy link
Member

@andreasabel andreasabel commented Sep 5, 2023

Searching the docs of Agda 2.6.4 RC1 seems to hang, see e.g. https://agda.readthedocs.io/en/v2.6.3.20230805/search.html?q=instance&check_keywords=yes&area=default#

Fix search on readthedocs.org by bumping sphinx_rtd_theme to 1.2.2.
1.2.2 includes readthedocs/sphinx_rtd_theme#1448 which fixes the issue, readthedocs/sphinx_rtd_theme#1452.

Test this on: https://agda--6821.org.readthedocs.build/en/6821/search.html?q=instance&check_keywords=yes&area=default

@andreasabel andreasabel added this to the 2.6.4 milestone Sep 5, 2023
@andreasabel andreasabel added the ux: documentation Issues relating to Agda's documentation label Sep 5, 2023
@andreasabel andreasabel self-assigned this Sep 5, 2023
@andreasabel andreasabel changed the title Fix search on readthedocs.org by bumping sphinx_rtd_theme to 1.2.2 Fix search on readthedocs.org Sep 5, 2023
@andreasabel andreasabel merged commit 2fcfdd1 into master Sep 5, 2023
5 of 9 checks passed
@andreasabel andreasabel deleted the fix-rtd-search branch September 5, 2023 13:36
@andreasabel andreasabel added the user-manual Concerning the user manual (sublabel of documentation) label Sep 26, 2023
JobPetrovcic pushed a commit to JobPetrovcic/agda that referenced this pull request Apr 12, 2024
This addresses a regression in `sphinx_rtd_theme` that causes `sphinxcontrib.jquery` to be not loaded.
Consequently, the search page seems to be hanging; the cause is that `jQuery` is undefined.
Adding `sphinxcontrib.jquery` is a suggested workaround at readthedocs/sphinx_rtd_theme#1452.

Since I see another problem with search locally and in the PR build on rtd.org, I bump to the latest `Sphinx` and `sphinx_rtd_theme`.  This doesn't fix the problem, though.  However, rtd.org seems to be fine with these requirements.
The problem I have been seeing is a `undefined` sprinkled in the `requestUrl` variable in Sphinx's `searchtools.js` which causes page loads to fail for previewing the search hits.  Maybe this problem will disappear in the regular build on rtd.org.

Squashed commits:

* Fix search on readthedocs.org by bumping sphinx_rtd_theme to 1.2.2

1.2.2 includes PR 1448 which fixes issue 1452

- readthedocs/sphinx_rtd_theme#1448
- readthedocs/sphinx_rtd_theme#1452

* Fixup: remove `html_theme_path`

Suggested in readthedocs/sphinx_rtd_theme#1452 (comment)

* Fixup 2: or, add 'sphinxcontrib.jquery' to 'extensions'

* Fixup 3: bump to latest Sphinx and rtd theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-manual Concerning the user manual (sublabel of documentation) ux: documentation Issues relating to Agda's documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant