Comments (6)
Oh nice - pinging @12rambau and @drammock who may also have thoughts, and probably more time than me since I'm the one with an infant now 🙂
from readthedocs-sphinx-search.
I just wanted to chime in into this conversation to let you know that are working on a new "js client" that will include all the Read the Docs Addons integrations: flyout, analytics, search as you type, etc.
This is not ready for users/authors to start using/integrating it yet; but I wanted to comment here in case you want to chime in there and follow the conversation/design.
- Repository: https://github.com/readthedocs/readthedocs-client
- How to communicate with the js client discussion: readthedocs/addons#13
- Initial test for the pattern (using WebElements) that all the addons (e.g. Search) may follow: readthedocs/addons#37
It will be super helpful for us getting feedback from you so we can build something that's easy to integrate for theme authors and easy to use for writers 😉 . Note that this is a work-in-progress work and things will change a lot, but having feedback at this early stage could be helpful for us.
from readthedocs-sphinx-search.
@choldgraf The docs say that it attachs to an input element with the search
role. So I think you just need to add role="search"
to it. The code looks for an input
below that:
readthedocs-sphinx-search/sphinx_search/static/js/rtd_sphinx_search.js
Lines 435 to 438 in 225353f
There's definitely a chance that this will conflict with our hotkey integration in the extension, but we are definitely interested in making it work nicely.
from readthedocs-sphinx-search.
Sorry I did have clarified - the "input" thing is what I wasn't sure about. Because our buttons are just buttons, there is no input field inside them. Does that mean that this won't work w the extension? Or that we'd need to nest an empty and visible input field or something?
from readthedocs-sphinx-search.
@choldgraf presumably the input is the text field that the search term goes in after the popup is launched? Changing the integration to trigger on other actions shouldn't be hard, but might take a small change to the code. We can definitely look into this next week.
from readthedocs-sphinx-search.
Ya - there is an input field on the page, it is just not nested inside the search button. It exists in a standalone spot and is simply revealed when the search button is pressed.
from readthedocs-sphinx-search.
Related Issues (20)
- Release 0.1.2? HOT 2
- How to change the search box color according to the system color
- Use an inline html template for search results and search result customization HOT 6
- Re-structure HTML of the results
- Support sphinx 6.0+ HOT 4
- Support default filters
- Add filtering UI to search
- Update to use Search api V3 HOT 2
- The search box input box doesn't show query string (it's white) HOT 1
- sphinx-search and sphinx-intersphinx HOT 2
- Use unique variable names in documentation and configuration
- Hitting enter redirects to the Sphinx search page
- Results not displayed if search closed/re-opened
- Automatically "wildcard search"? HOT 4
- ModuleNotFoundError: No module named 'sphinx_search' HOT 1
- Parallel reading warning HOT 1
- Search as you type panel opens too late and first characters are not typed HOT 4
- Flaky tests
- Release 0.1.1? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from readthedocs-sphinx-search.