jbms / sphinx-immaterial

Adaptation of the popular mkdocs-material material design theme to the sphinx documentation system
https://jbms.github.io/sphinx-immaterial/
Other
191 stars 29 forks source link

search.highlight feature isn't functioning #179

Closed 2bndy5 closed 1 year ago

2bndy5 commented 1 year ago

I've been looking into the web console error stating,

Uncaught ReferenceError: _ready is not defined
    <anonymous> file:///path/to/GitHub/sphinx-immaterial/docs/_build/html/_static/sphinx_highlight.js:143
sphinx_highlight.js:143:1

This error originates from a JS file in sphinx basic theme. While Sphinx v6.0 aims to drop JS dependencies, namely JQuery and underscoreJS, this line is still present in the Sphinx v6.0b2 src.

This context prompted me to test the search.highlight feature (un-commented in this repo's docs/conf.py), and I found that the search results were not highlighted as the feature claims to do. I'm still digging, but I figured I'd start a thread for it.