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 does not jump to precise Python object and only jumps to top of page. #198

Closed jgarte closed 1 year ago

jgarte commented 1 year ago

Hi,

When I search on this sphinx-immaterial website and choose a Python object it always takes me to the top of the page instead of directly to the Python object that I'm searching for:

https://josiahwolfoberholtzer.com/uqbar/

For example,

If I search for the query add:

image

When I get redirected it takes me to the top of the page and to this url:

https://josiahwolfoberholtzer.com/uqbar/api/uqbar/containers/dependency_graph.html#

image

What sphinx-immaterial needs to do is redirect to this url instead:

https://josiahwolfoberholtzer.com/uqbar/api/uqbar/containers/dependency_graph.html#uqbar.containers.dependency_graph.DependencyGraph.add

So that I can arrive here:

image

This issue also happens on a local project.

Is this a bug or am I missing some feature that needs to be enabled?

2bndy5 commented 1 year ago

fix released with v0.11.2