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
Works not with language parameters #6
Comments
This seems to be an issue with MkDocs Material. With the configuration above, I get the following console output (FF, file:// protocol): TypeError: lunr.multiLanguage is undefined index.ts:148:15
Loading failed for the <script> with source “file:///C:/Temp/mkdocs-test/test/lunr/min/lunr.de.min.js”. index.html:1:1
Loading failed for the <script> with source “file:///C:/Temp/mkdocs-test/test/lunr/min/lunr.multi.min.js”. index.html:1:1
Loading failed for the <script> with source “file:///C:/Temp/mkdocs-test/test/lunr/min/lunr.stemmer.support.min.js”. index.html:1:1 With TypeError: e is undefined lunr.js:2678:2
Loading failed for the <script> with source “file:///C:/Temp/mkdocs-test/test/lunr/min/lunr.de.min.js”. index.html:1:1
Loading failed for the <script> with source “file:///C:/Temp/mkdocs-test/test/lunr/min/lunr.stemmer.support.min.js”. index.html:1:1 The issue seems to be related to both the If I use a web server, everything works as expected. @squidfunk Could you please look into this? I have attached a sample project: localsearch-issue-6.zip |
Might be related to |
So, I took some minutes to investigate. It's indeed related to What I just tested is whether we can return a I attached the patched |
Not sure if that's what you wanted me to do, but I downloaded your ZIP file, added
|
No, the search worker code needs to be adjusted to |
I tried, but couldn't get it to work. Sorry 😞 I have no experience with Typescript or |
Support for |
Great, thanks. I'll check it out as soon as I have access to Insiders via my corporate account. |
Great! We can work on this together from then on, so search works for your product after all. The funding goal for general availability is also not that far away. |
The funding goal was hit, so let's revisit this issue when Material 6 is released, which should fix this problem. I'm pretty sure it's going to arrive this weekend. If the issue persists, we can work on it. |
Uuuh v6, it's gonna be a major release. Yes, let's do that. |
squidfunk/mkdocs-material@9fe00ec fixes this issue, by detecting theme:
name: material
language: de
plugins:
- search
- localsearch
Just released it as 6.0.1. |
Also tested this, works like a charm. Thanks for your support 🙏 |
I have tested the plugin and found that it does not work with other languages.
For example an excerpt from my mkdocs.yml:
Commented (with hash) it works, but commented out (without hash) it does not work.
Edit: Browser is Firefox
The text was updated successfully, but these errors were encountered: