-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Remove Unable to find a git directory and/or git is not installed warning on local only builds #58
Comments
Hi @aphive. So you have a local docs folder that is not under version control (not a git repo). Because you're getting a warning instead of an error, that means you have mkdocs-git-revision-date-localized-plugin/mkdocs_git_revision_date_localized_plugin/util.py Lines 121 to 127 in e0d80ac
I am wondering what your use case is, and what the best solution then would be. I see two:
Also wondering if commenting out the plugin in your Let me know what you think! |
Thanks for the feedback. I think having both option 1 and 2 option to suppress_warnings would be the right way to go. Option one would serve best for cases where builds do take advantage of the env variable and option two would serve for cases where no other env will be used. For the time being, I can work with the plugin disabled. Wondering tho if there could potential missed issues due to no warning showing. |
I've added a new |
When working on a local only docs site, is there a way to not let this warning show up? When you get to having many pages it becomes a useless nuisance as we already know there is no git configuration set.
The text was updated successfully, but these errors were encountered: