Remove duplicate Docsearch configuration object
Why
I found something interesting while looking into #1124 (closed).
The Docs homepage creates its own DocSearch instance in content/frontend/home/index.js
. This instance is exactly the same as the one we define in content/assets/javascripts/docsearch.js
, which is also loaded on the homepage (from here). We only need one of these.
How to test
- Open the site in the review app
- Run a search from the homepage
- Run a search from an interior page