Thanks to visit codestin.com
Credit goes to github.com

Skip to content

DOC Enable sphinx search summary #27797

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

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Conversation

lesteve
Copy link
Member

@lesteve lesteve commented Nov 17, 2023

Showing the context of the hint is handy to decide which link is more likely to have the information we want when we use the doc search bar.

This PR:

image

our current search:

image

I think it was disabled because for consistency with the custom search code we had previously and maybe out of a concern that it was slow, e.g. #24128 (comment). It does not feel too slow for me in the CircleCI artifacts: https://output.circle-artifacts.com/output/job/b8445a52-e0db-4fb5-99c9-eb974695f950/artifacts/0/doc/search.html?q=ridge

While doing that I noticed that html_search_show_summary=True was not working. This is a change in sphinx 7.2 that was also noticed in sphinx-pydata-theme: pydata/pydata-sphinx-theme#1498 with the fix in pydata/pydata-sphinx-theme#1559

The sphinx 7.2 change is here:
sphinx-doc/sphinx@8e730ae#diff-a5066e933cbf65adc46e0d1ab9a0b44e0a53ca64cc95dca7e6aa902aed6bd468R105

This is wonderful by the way, direct commit in main, no context to understand the reason for the change, no changelog entry, oh well "c'est la vie" as we say 😉

Side-comment: maybe we can remove the "Internet Explorer < 9" line, these days I think nobody uses this anymore. Internet Explorer 9 was released in March 2011.

Copy link

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 77e4c89. Link to the linter CI: here

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

Thanks @lesteve

I think this is more informative and it would have helped @lorentzenchr in his search of benchmarking.

@glemaitre glemaitre merged commit dfae3f0 into scikit-learn:main Nov 17, 2023
@lesteve lesteve deleted the search-context branch November 17, 2023 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants