-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Support type-dependent search result highlighting via CSS #12474
Merged
Commits on Jul 25, 2024
-
ENH: Add type-dependent class to search result entries
This allows styling different types of results individually. It's helpful to visually distinguish different content types. This PR adds `context` to the javascript result entries (one of "title", "index", "object", "text") and adds them as a classes context-title, context-index, context-object, context-text to the <li> item in the result list. This allows styling via CSS. The basic theme only contains the mechanism to add the HTML classes. It does intentionally not do any styling via CSS. We reserve that freedom to derived themes. For the internal sphinx13 theme, I've styled with unicode symbols, which should give a decent look without the need to ship our own symbols. Co-authored-by: Adam Turner <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4c7952a - Browse repository at this point
Copy the full SHA 4c7952aView commit details -
Apply suggestions from code review
Co-authored-by: James Addison <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 684cdad - Browse repository at this point
Copy the full SHA 684cdadView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a2a337 - Browse repository at this point
Copy the full SHA 3a2a337View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dbbbdc - Browse repository at this point
Copy the full SHA 7dbbbdcView commit details
Commits on Jul 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for bbccc5e - Browse repository at this point
Copy the full SHA bbccc5eView commit details
Commits on Aug 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for eb8db20 - Browse repository at this point
Copy the full SHA eb8db20View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3c24c1 - Browse repository at this point
Copy the full SHA d3c24c1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 531efce - Browse repository at this point
Copy the full SHA 531efceView commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.