-
Notifications
You must be signed in to change notification settings - Fork 8
fix: enable local page Search and default to PyData search on 'Enter'
#584
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
Conversation
src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/js/search.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Jorge Martínez <[email protected]>
| function initializeFuse(data, options) { | ||
| fuse = new Fuse(data, options); | ||
| // add env variable "FUSE_ACTIVE" to indicate that the search is ready | ||
| document.documentElement.setAttribute("data-fuse_active", "true"); |
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.
https://github.com/ansys/ansys-sphinx-theme/pull/584/files#r1838131150 adding the value only if fuse.js initialize
jorgepiloto
left a comment
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.
Thanks for adding this, @Revathyvenugopal162.
|
Thank you for reviewing @jorgepiloto , merging and performing a patch release |
fixes #581
Enhancements to Search Functionality:
"Enter" Key Navigation to First Result:
Local HTML File Search for Development: