Deprecation blocks strict build when migrating to newer version #8310
-
Hi! Recently, I've upgraded mkdocs-material to version 9.5.5 from 8.5.11 and happened to notice that min_search_length option is deprecated now. I also decided to look into mkdocs repo, but didn't find support for it there. We use it extensively in our projects, so I need to know if there's an alternative. Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 16 replies
-
We build our docs with strict mode enabled, so we really need to find solution here :) |
Beta Was this translation helpful? Give feedback.
-
If you're willing to use the old search you can set plugins:
- /search this will load the default variant from MkDocs, instead of the newer search introduced in v9 of the theme EDIT: Ah that's not entirely correct, I stumbled again on the same issue. 😞 |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow thank you! I compiled it now with prefixed with slash "search" and it worked. Now I see that it also affects js/html part, which is sad. Do I need to modify search.html template and JavaScript in every generated doc? |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow do you have any ideas regarding safe upgrade? We got 900 docs with failing builds out of 1045 and lion's share of errors related to unsupported options specified in config for the search plugin (with min_search_length being the leader). UPD. We changed version to 9.5.33 which also triggered bumping mkdocs to version 1.6.1 |
Beta Was this translation helpful? Give feedback.
-
@kamilkrzyskow Closing the discussion for now. Thank you very much for help! |
Beta Was this translation helpful? Give feedback.
@threadedstream
Following the example I prepared before in:
I made a quick script to suppress the warning and ignore the value:
[EDIT: The script below was simplified to directly target the suppression, but the example in the link above could be used to filter all sorts of values similar to the mkdocs-nype
__init__.py
]