Skip to content

Remove duplicate Docsearch configuration object

Sarah German requested to merge remove-duplicate-docsearch into main

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

  1. Open the site in the review app
  2. Run a search from the homepage
  3. Run a search from an interior page

Merge request reports

Loading