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

Update to new Docsearch v3 and fix native search when docsearch is disabled #10

Merged
merged 2 commits into from Jan 25, 2022

Conversation

eternoendless
Copy link
Member

This change

  • Updates Algolia Docsearch to v3
  • Fixes the issue with search not filtering results according to the current PrestaShop version (read note below)
  • Re enables the native search when docsearch is disabled (eg for prestashop-specs)

Here's what it looks like now with Algolia Docsearch:

Screenshot 2022-01-24 at 19 47 40

Note: the shortcut "keys" are added by Algolia's script. I guess they change according to the user's platform automatically.

Here is what it looks like when searching:

Screenshot 2022-01-24 at 19 48 30

Note about broken search-by-version

Currently, the search is not filtering results by PrestaShop version and displays results twice (one for each version). This is also fixed with this PR because I updated Algolia's index but it only works with Docsearch v3.

@matks
Copy link
Contributor

matks commented Jan 25, 2022

Thank you @eternoendless

@matks matks merged commit e942e47 into PrestaShop:main Jan 25, 2022
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.

None yet

2 participants