audeering / sphinx-audeering-theme

Sphinx theme from audEERING
https://audeering.github.io/sphinx-audeering-theme/
Other
1 stars 0 forks source link

Add missing script block in layout.html #25

Closed hagenw closed 3 years ago

hagenw commented 3 years ago

Closes #23

It seems to be that they introduced a new scripts block in the RTD theme. This is referenced in search.html in order to add the JS file. As we hadn't the block defined in our layout.html file it was not inserting it.

I added now the missing block to layout.html and for me the search is working. In order to test the search locally, you have to allow the browser to reference local files, e.g.

$ chromium-browser --allow-file-access-from-files

Otherwise you will get javascript errors.

For me the output now looks like this:

image

hagenw commented 3 years ago

I have to admit, I'm not completely sure if it was ever working ;)