-
-
Notifications
You must be signed in to change notification settings - Fork 55
MkDocs can't build or serve when setting plugin locale #2
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
Thanks for this! Was a bug on my side, fixed in the new version. Can you try again with: pip install --upgrade mkdocs-git-revision-date-localized-plugin |
I'm now getting a different error after updating:
Same error regardless if using the config with or without type and locale. |
Yes I introduced a new bug in that release, sorry for that. I need to write some units tests.. Should work now in When you set the theme language the plugin locale is ignored, so no need to set both. |
Plugin works as intended for me now! If you're all doe with test cases and such, please close the issue. Thanks for a great plugin! |
Opened #5 for adding unit tests. Thanks again for the feedback! |
Can confirmed it's fixed as well, thanks ! |
Background
Tried out this plugin using MkDocs and Material for MkDocs. Initially it didn't work at all when I set
type: date
andlocale: en
. I checked the docs from https://squidfunk.github.io/mkdocs-material/extensions/revision-date/ and used the config as stated there as I wanteddate
and my theme language wasen
:Everything worked locally using both
mkdocs serve
andmkdocs build
and I addedmkdocs-git-revision-date-localized-plugin==0.3.3
to myrequirements.txt
that is called through my Jenkinsfile.The build then failed with the exakt error message as on line 33 from plugin.py, "WARNING - plugin locale setting '{plugin_locale}' will overwrite mkdocs locale '{mkdocs_locale}'". No filled in variables, just the straight error message from the console.
So I decided to try it out more locally and what I found out was that locally the
mkdocs_locale = config.get('locale')
returnsNone
. So when themkdocs_locale
isNone
and I set theplugin_locale
to anything, including the defaulten
both serve and build fails locally.I have unfortunately not found any useful info so far on how to set a
mkdocs_locale
.System
MkDocs: 1.0.4
Material for MkDocs: 4.6.0
MkDocs Git Revision: 0.3.3
mkdocs.yml
Error message
The text was updated successfully, but these errors were encountered: