-
Notifications
You must be signed in to change notification settings - Fork 331
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
docs(getAlgoliaHits): rewrite guides #474
Conversation
#### `query` | ||
|
||
> `string` | required | ||
|
||
The query to search for. | ||
|
||
#### `params` | ||
|
||
> [`SearchParameters`](https://www.algolia.com/doc/api-reference/search-api-parameters/) | required |
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.
Why are they required? You may not want to pass any additional parameters.
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.
query
and params
are not required actually.
2f27e87
to
1fd550e
Compare
The Docusaurus team is aware of this problem (facebook/docusaurus#3915). |
Co-authored-by: François Chalifour <[email protected]>
This rewrites the
getAlgoliaHits
docs for bothautocomplete-preset-algolia
andalgolia-js
.I wanted to move the parameters to a partial to avoid having to redirect users to
autocomplete-preset-algolia#getAlgoliaHits
, unfortunately when you do that, the scrollspy doesn't pick up headings 🤦🏻♀️🤷🏻♀️