-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Remove 'highlight' URL param from search results #6087
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
Remove 'highlight' URL param from search results #6087
Conversation
I'm lacking context to review this PR. Why are we doing this? |
Gotcha! I think the problem to solve here is different. Instead of removing the highlighting, I think we should make to highlight only the full text searched. In your example, |
How can we achieve this? |
I have no idea 😁 --maybe solving it upstream? is it even reported? My point is that we are removing a good feature because of a small bug in only one case and I think we need to solve that bug instead. |
@humitos there was a conversation in slack about this. Other suggestion was to have an ui element to deactivate the highlight. Also, I think that now we link to specific sections, is more easy to find the word you were looking for. Personally I always modify the url to remove the highlight, and just use the firefox search if I need something like that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm +1 on dropping this
The other PR readthedocs/readthedocs-sphinx-search#43 |
I think there are some theme updates we can do to make it easier to remove the highlighting, some patches to Sphinx in general, but I also always remove it when I hit the page. I think it should likely be opt-in with default off, which would make it much more user-friendly IMO. |
OK. I like the highlight feature. I understand that there are cases where it's broken and I'm fine with this immediate solution for this. I think the right solution is to fix these cases instead (I don't know how much work it means, though) and make this opt-in. |
I remembered that I saw this feature in Link: http://2.python-requests.org/en/master/user/quickstart/?highlight=payload#passing-parameters-in-urls |
Opened: readthedocs/sphinx_rtd_theme#816 |
I am a strong -1 on this change, I think we should revert this and figure out a better way to address whatever problems we were having with the results. Highlighting in doc is 100% a useful feature, though I always have to remove the |
@agjohnson I always find it removing from the url. |
I raised some better fixes for this case in #6305 |
No description provided.