You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sphinx search summary disappeared from 1.5 website #29073
Looks like the sphinx search summary has gone from 1.5 website. Not crucial, but showing the context of the match is handy to decide which link is more likely to have the information we want when we use the doc search bar.
Maybe due to pydata-sphinx-theme switch, maybe something else ...
+1 for re-enabling the sphinx search result previews with the new theme if possible while waiting for a possible revival of the Algolia alternative discussed at #28478.
It seems to be because pydata-sphinx-theme removes role="main" which sphinx search relies on for fetching the search summary. It is restored in 0.15.3rc1 but I'm not sure when 0.15.3 will be finally released (it seems to be blocked by some issue, according to pydata/pydata-sphinx-theme#1797). Should we somehow force the doc build to use pydata-sphinx-theme==0.15.3rc1?
Let me try sphinx==7.2.6 with pydata-sphinx-theme==0.15.2. We are currently using sphinx==7.3.7; perhaps sphinx has changed their way of generating search summary.
But I found a very simple fix: we can overwrite searchtools.js by vendoring from sphinx and changing every occurrence of [role="main"] to #main-content. After pydata-sphinx-theme==0.15.3 is release we can simply deleted this file.
Activity
ogrisel commentedon May 22, 2024
+1 for re-enabling the sphinx search result previews with the new theme if possible while waiting for a possible revival of the Algolia alternative discussed at #28478.
/cc @Charlie-XIAO.
Charlie-XIAO commentedon May 22, 2024
This I believe is some upstream bug but I can't remember clearly. Let me try to find it out.
Charlie-XIAO commentedon May 22, 2024
It seems to be because
pydata-sphinx-themeremovesrole="main"which sphinx search relies on for fetching the search summary. It is restored in0.15.3rc1but I'm not sure when0.15.3will be finally released (it seems to be blocked by some issue, according to pydata/pydata-sphinx-theme#1797). Should we somehow force the doc build to usepydata-sphinx-theme==0.15.3rc1?glemaitre commentedon May 22, 2024
I think that we can temporary await for the final release since it should be coming soon. Also, I'll start to look again at the Algolia search engine.
glemaitre commentedon May 23, 2024
I'm wondering if this is not a problem of configuration because I see that Jupyter has the right output with the latest release 0.15.2:
Charlie-XIAO commentedon May 23, 2024
Let me try
sphinx==7.2.6withpydata-sphinx-theme==0.15.2. We are currently usingsphinx==7.3.7; perhapssphinxhas changed their way of generating search summary.Charlie-XIAO commentedon May 23, 2024
I have actually tried
sphinx==7.3.7withpydata-sphinx-theme==0.15.3rc1and at least on my local machine this combination works.glemaitre commentedon May 23, 2024
OK so let's just wait.
Charlie-XIAO commentedon May 23, 2024
So strange 🤣
sphinxpydata-sphinx-theme7.2.60.15.27.3.70.15.27.2.40.14.17.3.70.14.47.2.60.15.2But I found a very simple fix: we can overwrite
searchtools.jsby vendoring fromsphinxand changing every occurrence of[role="main"]to#main-content. Afterpydata-sphinx-theme==0.15.3is release we can simply deleted this file.Charlie-XIAO commentedon May 23, 2024
#29090
glemaitre commentedon May 29, 2024
The version 0.15.3 is available ;)