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

Algolia DocSearch dropdown is not shown when viewing versioned docs #61

Closed
ravirajn22 opened this issue Dec 13, 2017 · 10 comments
Closed

Comments

@ravirajn22
Copy link

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

yes

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 6.11.0
Yarn: 1.3.2
npm: 5.4.2
Watchman: 4.7.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Android Studio: 2.3 AI-162.4069837
Chrome - 63.0.3239.84
Firefox - 57.0

Packages: (wanted => installed)
react-native: 0.48.1 => 0.48.1
react: 16.0.0-alpha.12 => 16.0.0-alpha.12

Target Platform: iOS (10.3)

Steps to Reproduce

(Write your steps here:)

  1. Open Website https://facebook.github.io/react-native/
  2. Search for Switch component using the search bar
  3. Modal drop down appears with appropriate search results
  4. Select Switch component
  5. Inside Switch component docs, search for Button component.
  6. Nothing happens.

But,
7. Go back again to home page i.e https://facebook.github.io/react-native/
8. Search for Button, it shows all search results again.

Expected Behavior

When you search for Button component inside Switch Component docs, a Modal dropdown must appear with all the search results

(Write what you thought would happen.)

Actual Behavior

Nothing happens! the search bar does nothing.

(Write what happened. Add screenshots!)

bug

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

@hramos hramos changed the title React-Native website search bar does not work as expected Algolia DocSearch dropdown is not shown when viewing versioned docs Dec 13, 2017
@hramos
Copy link
Contributor

hramos commented Dec 13, 2017

Looks like the dropdown is only triggered when viewing the latest version's docs. After navigating to 'next' or to a previous release, the drop down is not shown. Looks like anything that changes the base URL of the docs will cause this to happen.

@ravirajn22
Copy link
Author

Please fix it soon, kind of tough to navigate and find features without search option.

@hramos
Copy link
Contributor

hramos commented Dec 14, 2017

You'll probably want to take a look at the pages/ files in this repo. It may also be a bug with Docusaurus itself. Ping me here if you open a PR on either repo and I can take a look.

@hramos
Copy link
Contributor

hramos commented Jan 25, 2018

@s-pace has some insight about this, copying over from another issue:

👋 guys,

React Native features DocSearch.

@MoOx the issue isn't coming from our side but from the DocSearch snippet

🏓 @hramos (@vjeux)

It look like the master pages aren't using the right tag (The latest version is hardcoded instead of master).

I have made a quick fix in order to don't stop the search in production but please update your tag from your DocSearch snippet. I can't do a PR on the gh-pages according to your Contributing Guide.

It is not the first time this issue happen.

Feel free to ask us for any other point, we would be happy to help.

I think this may need to be fixed upstream in Docusaurus (see my comment here s-pace/react-native@4bf072a).

@hramos
Copy link
Contributor

hramos commented Jan 25, 2018

facebook/docusaurus#418

@methodbox
Copy link

methodbox commented Jun 10, 2019

Are you guys aware this is still broken? The docs are effectively unusable without search.

This seems to break every couple of weeks.

Edit: you might have some duplicate issues here: #998 and here: #985

@s-pace
Copy link

s-pace commented Jun 11, 2019

The crawl is pretty long and was stopped. Can you check now @methodbox ? Should be fine

image

s-pace pushed a commit to algolia/docsearch-configs that referenced this issue Jun 11, 2019
@methodbox
Copy link

methodbox commented Jun 11, 2019

The crawl is pretty long and was stopped. Can you check now @methodbox ? Should be fine

image

Not sure what you mean by, "the crawl is pretty long...". Can you clarify?

It seems to be working now. However, your test image shows the actual home page; note that this was particularly and issue after searching and/or on the actual docs page. Both seem to work okay now, though.

Please also understand it wasn't just the quick search drop-down - hitting Enter did nothing; it literally would not search.

@s-pace
Copy link

s-pace commented Jun 11, 2019

The daily crawl was too long so it was not correctly done. Should be fixed now :)

@Simek
Copy link
Collaborator

Simek commented May 4, 2020

It also looks like a fixed issue for me. @methodbox Feel free to reopen this issue or create the new one if the problem persist.

@Simek Simek closed this as completed May 4, 2020
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

No branches or pull requests

5 participants