Skip to content

Missing searchtools warning when making LaTeX #9796

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

Closed
tjk584 opened this issue Dec 10, 2022 · 2 comments
Closed

Missing searchtools warning when making LaTeX #9796

tjk584 opened this issue Dec 10, 2022 · 2 comments
Labels
Accepted Accepted issue on our roadmap Bug A bug

Comments

@tjk584
Copy link

tjk584 commented Dec 10, 2022

Details

Problem

I am getting the following warning when I try to compile my docs into latex format:

copying TeX support files... copying TeX support files...
done
WARNING: Missing searchtools: /home/docs/checkouts/readthedocs.org/user_builds/borealis/checkouts/readthedocs_cleanup/docs/source/_build/latex/_static/searchtools.js
build succeeded, 1 warning.

The LaTeX files are in _build/latex.

I believe this error is thrown from this line of code: https://github.com/readthedocs/readthedocs-sphinx-ext/blob/f1145b1819458643f442b21083b3397aeebc8e72/readthedocs_ext/readthedocs.py#L277

This problem doesn't occur when I compile the docs locally - see the source code linked above.

Solutions Attempted

This problem is very similar to #5029, but I am using the latest version of Sphinx (5.3.x) instead.

I have tried:

  • Copying the searchtools.js source code into my repo and loading in conf.py with:
html_search_scorer = 'searchtools.js'
  • Loading sphinx_search.extension within conf.py

Neither made the warning go away.

@humitos humitos added Bug A bug Accepted Accepted issue on our roadmap labels Dec 12, 2022
@humitos
Copy link
Member

humitos commented Dec 12, 2022

I think this is a bug and the check for searchtools.js should only be done if the builder is HTML.

@humitos
Copy link
Member

humitos commented Sep 15, 2023

This was fixed in readthedocs/readthedocs-sphinx-ext#129

@humitos humitos closed this as completed Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepted Accepted issue on our roadmap Bug A bug
Projects
None yet
Development

No branches or pull requests

2 participants