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

Fix search index #322

Merged
merged 3 commits into from
Feb 11, 2022
Merged

Fix search index #322

merged 3 commits into from
Feb 11, 2022

Conversation

maelle
Copy link
Member

@maelle maelle commented Feb 11, 2022

Fix #321

For info here are the steps I took @steffilazerte

  • I opened the web developer console in a browser (e.g. via Ctrl + Alt + I on Firefox).
  • I tried using search.
  • I saw the error message
Uncaught (in promise) SyntaxError: JSON.parse: bad control character in string literal at line 1 column 1659 of the JSON data
  • To get a more precise error, I used jsonlite::read_json("https://ropensci.org/search/index.json").
  • After the first modification I made of the content file that was the culprit, I used hugodown::hugo_start() and jsonlite::read_json("http://localhost:1313//search/index.json"). (it seems that the search index is not always rebuilt so one might have to run hugodown::hugo_stop() and hugodown::hugo_start() if making successive changes)

I'll update the README instructions.

@maelle maelle merged commit f770b6f into master Feb 11, 2022
@maelle maelle deleted the fix-search branch February 11, 2022 08:43
@steffilazerte
Copy link
Member

That's awesome! I should be able to use these steps in future if I need to trouble shoot, thanks 😁

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

Successfully merging this pull request may close these issues.

Search isn't searching?
2 participants