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 on Safari and handle errors and :: queries #447

Merged
merged 1 commit into from
Dec 24, 2023

Conversation

danakj
Copy link
Collaborator

@danakj danakj commented Dec 24, 2023

:: needs to be escaped to a space, since : is handled specially by lunrjs.

Errors during search get displayed on the page.

Avoid import for json files as Safari doens't support it. Instead write a JS file which sets a variable, and load it through a script tag.

Generate search index items for things without pages of their own:

  • fields
  • methods
  • aliases

@danakj danakj added this to the Subdoc milestone Dec 24, 2023
`::` needs to be escaped to a space, since `:` is handled specially
by lunrjs.

Errors during search get displayed on the page.

Avoid import for json files as Safari doens't support it. Instead write
a JS file which sets a variable, and load it through a script tag.

Generate search index items for things without pages of their own:
- fields
- methods
- aliases
@danakj danakj merged commit 08281be into chromium:main Dec 24, 2023
9 checks passed
@danakj danakj deleted the search-safari branch December 24, 2023 16:35
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.

1 participant