Closed ldeluigi closed 2 years ago
A fallback to empty author would also be fine if git is not available
I like the fallback option better. When git is not available we can fallback to disabling the plugin (with a warning).
For the implementation we can borrow from https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/options/#fallback_to_build_date.
Would you be willing to contribute a PR for this?
At the moment I'm too busy. I'll look at it when I get some free time, sorry.
Like https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin#enabled_if_env
It's useful in a CI environment where you don't know if there is a git repository available