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

Remove html_theme_path setting from docs config to fix search & other JavaScript functions #970

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

miek
Copy link
Contributor

@miek miek commented Nov 2, 2023

I've noticed that search and other JavaScript functions (like opening the version information box in the bottom left) fail on the readthedocs page, which I think is due to an exception thrown over missing jQuery.

I found some advice in the sphinx_rtd_theme issues (1, 2) suggesting this can be caused by setting html_theme_path, which was previously recommended but is now out of date.

This updates the config in-line with current advice from sphinx_rtd_theme adding it to extensions and removing the html_theme_path setting.

I wasn't able to reproduce the problem offline to test, but I'm hoping this PR kicks off an RTD build to test it out
Edit: the build worked, and it seems to be fixed! https://scikit-rf--970.org.readthedocs.build/en/970/

Currently search and other JavaScript functions fail on the RTD
documentation page, due to an exception thrown over missing jQuery.

Searching upstream, this can be caused by setting `html_theme_path`
which was previously recommended but is now out of date.

This updates the config in-line with current advice from sphinx_rtd_theme
adding it to `extensions` and removing the `html_theme_path` setting.
@github-actions github-actions bot added the Documentation Request/Improvement of the documentation label Nov 2, 2023
Copy link
Collaborator

@Vinc0110 Vinc0110 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks for reporting and fixing this!
I have not idea about the details, but I can confirm the search now works again in your test build of the docs.

@jhillairet jhillairet merged commit 8749892 into scikit-rf:master Nov 3, 2023
12 checks passed
@jhillairet
Copy link
Member

Thanks a lot !

@jhillairet jhillairet mentioned this pull request Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Request/Improvement of the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants