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

Simplifying DocSearch documentation #624

Merged
merged 2 commits into from
May 2, 2018
Merged

Conversation

pixelastic
Copy link
Contributor

Motivation

Hello, Tim from Algolia here. I'm one of the maintainers of DocSearch, and by reading the DocSearch/Docusaurus documentation I thought it could be simplified by slightly rewording the current version.

Here are the main points:

  • I explained a bit more how DocSearch works (trying to explain that it's an external service that requires the website to be online)
  • I removed mentions to the search API key as in that case, it's always a search (as opposed to admin) API key that is used
  • I removed the part about faceting on the version. I thought it was confusing as without a specific UI to display the faceting, this part alone won't do much. I might submit a PR later to specifically handle faceting by version, including the required layout changes, but as it was today I think it would just create confusion rather that adding value.

Hope that helps :)

Have you read the Contributing Guidelines on pull requests?

I did :)

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 30, 2018
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Apr 30, 2018

Deploy preview for docusaurus-preview ready!

Built with commit 3e0797c

https://deploy-preview-624--docusaurus-preview.netlify.com

Copy link
Contributor

@JoelMarcey JoelMarcey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @pixelastic - thank you for cleaning up our search docs. One question - is it worth keeping the extra search sections part, just without the example that shows facetFilters? Just say that you can configure even more broadly? Or you think removing all parts of that section is better?

@pixelastic
Copy link
Contributor Author

Good call. From our experience most of the times the default config works just fine, but sometimes users need to add a few custom options in their config. For those cases I think it's better if the documentation clearly state where to add those options.

I'll update the PR with those changes.

I slightly rewrote the DocSearch documentation. The main three points are:

- I explained a bit more how DocSearch works (trying to explain that it's an external service that requires the website to be online)
- I removed mentions to the _search_ API key as in that case, it's always a _search_ (as opposed to _admin_) API key that is used
- I removed the part about faceting on the version. I thought it was confusing as without a specific UI to display the faceting, this won't do much. To use it properly, one will need to dig more into layouts. I might submit a PR about that later, but as it was today I think it would just create confusing rather that adding value

Hope that helps :)
Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants