react-bootstrap icon indicating copy to clipboard operation
react-bootstrap copied to clipboard

Search field in github.io docs leads to netlify.app docs

Open Jammar opened this issue 4 years ago • 2 comments

Describe the bug

Search results in documentation are linked to wrong documentation site (auto-generated netlify.app).

To Reproduce

Visit https://react-bootstrap.github.io/components/alerts/

In the left sidebar, find the search input and search: "Modal".

All results in typeahead/input field leads to the netlify.app docs.

In the netlify.app docs, there is an alert banner which says:

You are currently viewing the auto-generated docs from the master branch. The docs for the current release are available at https://react-bootstrap.github.io/

Linking back to the original documentation (at github.io)

Expected behavior

I expect the search results on github.io to lead to sections or pages in github.io, not link to a different/wrong documentation site.

Screenshots

screenshot

Environment

Windows 10 Chrome

Jammar avatar Feb 19 '21 12:02 Jammar

This is still an issue. At the moment, there is no way to search current documentation since the search bar is searching the wrong docs. This has also led to some confusion on my end.. it took me a while to realize why I kept finding myself on the wrong documentation version.

@kyletsang Do you know what work needs to be done to fix this issue? And is there a contributing guide for the auto-generated docs, or a file explaining how it works / how to run it locally, etc? I would like to help out with this if I can - unfortunately I'm not well-versed on some of the tech involved so I may need a little help getting started.

cheryllium avatar Aug 26 '21 21:08 cheryllium

Here's the instructions for running the project: https://github.com/react-bootstrap/react-bootstrap#local-setup

In terms of the fix for this, I think we just need to setup a new Algolia key for the v4 docs.

cc @jquense

kyletsang avatar Aug 27 '21 00:08 kyletsang