Skip to content

Deprecation blocks strict build when migrating to newer version #8310

Closed Answered by kamilkrzyskow
threadedstream asked this question in Q&A
Discussion options

You must be logged in to vote

@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]

# https://github.com/squidfunk/mkdocs-material/issues/7976#issuecomment-2649651039

from material.plugins.search import config as config_module
from mkdocs import __main__ as mkdocs_main
from mkdocs.config.config_options import Optional, Type


class MySearchConfig(config_module.SearchConfig):
    min_search_length = Optional(Type(int))

def main():
    co…

Replies: 5 comments 16 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@kamilkrzyskow
Comment options

@threadedstream
Comment options

@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
13 replies
@kamilkrzyskow
Comment options

@threadedstream
Comment options

@threadedstream
Comment options

@kamilkrzyskow
Comment options

Answer selected by threadedstream
@threadedstream
Comment options

@kamilkrzyskow
Comment options

@threadedstream
Comment options

@kamilkrzyskow
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants