Skip to content
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

Merged
merged 14 commits into from
Mar 4, 2021
Merged

docs(getAlgoliaHits): rewrite guides #474

merged 14 commits into from
Mar 4, 2021

Conversation

sarahdayan
Copy link
Member

@sarahdayan sarahdayan commented Mar 2, 2021

This rewrites the getAlgoliaHits docs for both autocomplete-preset-algolia and algolia-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 🤦🏻‍♀️🤷🏻‍♀️

#### `query`

> `string` | required

The query to search for.

#### `params`

> [`SearchParameters`](https://www.algolia.com/doc/api-reference/search-api-parameters/) | required
Copy link
Member Author

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.

Copy link
Member

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.

@sarahdayan sarahdayan marked this pull request as draft March 2, 2021 15:48
@sarahdayan sarahdayan removed the request for review from francoischalifour March 2, 2021 15:48
@sarahdayan sarahdayan changed the base branch from next to docs/preset-algolia March 2, 2021 16:45
@sarahdayan sarahdayan force-pushed the docs/getAlgoliaHits branch from 2f27e87 to 1fd550e Compare March 2, 2021 16:46
@francoischalifour
Copy link
Member

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 🤦🏻‍♀️🤷🏻‍♀️

The Docusaurus team is aware of this problem (facebook/docusaurus#3915).

packages/website/docs/getAlgoliaHits.md Outdated Show resolved Hide resolved
packages/website/docs/getAlgoliaHits.md Outdated Show resolved Hide resolved
Base automatically changed from docs/preset-algolia to next March 2, 2021 19:20
@sarahdayan sarahdayan marked this pull request as ready for review March 2, 2021 19:26
Co-authored-by: François Chalifour <[email protected]>
@sarahdayan sarahdayan merged commit 1429c40 into next Mar 4, 2021
@sarahdayan sarahdayan deleted the docs/getAlgoliaHits branch March 4, 2021 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants