-
Notifications
You must be signed in to change notification settings - Fork 2
Search is failing on the main site #131
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
Comments
https://github.com/squidfunk/mkdocs-material/blob/master/docs/contributing/reporting-a-bug.md for reporting a bug. Upgrading mkdocs-material doesn't fix it. Removing customizations doesn't fix it. No similar bugs found online. Very easily reproducible by opening console and typing out "Vector2" (it will error for each keypress). My attempts to create a minimal reproduction aren't working. @brettfiedler could you look into potentially submitting a bug for this, or seeing if there is a good fix or workaround? |
I think support for search is out - they are currently looking to revamp how it works entirely and away from the lunr.js MkDocs default implementation. See bottom comments in squidfunk/mkdocs-material#6307 On that note, there are a few other options in the search plugin to play with that I'll give a try: https://www.mkdocs.org/user-guide/configuration/#search |
Note: most of the search plugin parameters for mkdocs don't work here. Restricted to: https://squidfunk.github.io/mkdocs-material/plugins/search/ That being said, I adjusted the separator and tried removing Will see how it deploys. |
Seems okay @jonathanolson, can you give it a quick look on your side? |
Working so much better! On tests, there are some things that are less than ideal (Vector2 is the 5th hit for the search "Vector2"). Is that something we want to try to improve (or could)? I think the current setup is very acceptable, feel free to close if you'd like (I'm bumping priority to low) |
Closing. Will investigate search improvements when mkdocs material updates the plugin. |
I noticed there is
separator: '[\s\-,:!=\[\]()"
/]+|.(?!\d)|&[lg]t;|(?!\b)(?=[A-Z][a-z])'` specified in mkdocs.yml for the search separator, I'm going to try removing it to see if there is an improvement.Getting things like:
The text was updated successfully, but these errors were encountered: