Closed atsai1220 closed 2 years ago
mike doesn't use Jinja's contextfilter
that I can see (though if it does, I'd prefer a patch to convert to the current Jinja API). The traceback you posted shows errors happening within MkDocs itself, so I think it would be better to fix this in MkDocs. See https://github.com/mkdocs/mkdocs/issues/2794, https://github.com/mkdocs/mkdocs/issues/2799, and https://github.com/mkdocs/mkdocs/pull/2795.
Limiting to <3.1 should be enough. That's what I did for Material for MkDocs as a temporary fix.
Thank you for the response. I'll close this and follow along with the mkdocs
issues. mike
is a great tool!
This should be fixed in MkDocs now: see https://github.com/mkdocs/mkdocs/pull/2800.
Using Python 3.9.0 and 3.10.0 with a fresh environment causes this error:
In
jinja2
documentation they referenced the deprecation ofcontextfilter
and currentlysetup.py
is not configured for a specific version.https://jinja.palletsprojects.com/en/3.0.x/api/#jinja2.pass_context