InvalidGitRepositoryError when calculating last_site_revision_timestamp
(conflict with monorepo plugin)
#96
Labels
bug
Something isn't working
Hello,
The plugin throws an InvalidGitRepositoryError when used with the
monorepo-plugin
(which is wrapped inbackstage/mkdocs-techdocs-core
.The code throwing the error seems to be the calculation of the
last_site_revision_timestamp
inmkdocs-git-revision-date-localized-plugin/mkdocs_git_revision_date_localized_plugin/plugin.py
Lines 70 to 72 in 9cfce40
Because the monorepo plugin changes the
docs_dir
to a temporary folder, no parent folder contains the git directory.It seems #41 fixed this issue for the last revision date of individual pages but the calculation of last site revision date was added after.
I can work on a fix for this but I'm not sure how we could restore the original
docs_dir
to calculate thelast_site_revision_timestamp
.Would you have any idea ?
Thanks !
The text was updated successfully, but these errors were encountered: