brad-cannell / r4epi

Repository for the R for Epidemiology book
http://www.r4epi.com/
Other
22 stars 52 forks source link

Fix search functionality #73

Closed mbcann01 closed 1 year ago

mbcann01 commented 1 year ago

Currently, the search function is only working for the currently displayed page. For example, if I click the search button from the R4Epi homepage, and search for the term "Welcome", it works as expected. However, if I search for the term "Goals", which appears on the very next page, no results are returned.

I think this page might be helpful: https://community.rstudio.com/t/search-in-bookdown-not-working/91942

mbcann01 commented 1 year ago

There was a conflicted copy of search_index.json in the docs folder. I deleted both copies of search_index.json and built the book again. Search seems to be working as expected again.