Closed
Description
Hello,
I was trying to use the MkDocs plugin timvink/mkdocs-git-revision-date-localized-plugin in my project but it always fails with:
$ mkdocs build
INFO - Cleaning site directory
INFO - Building documentation to directory: /home/prcr/Codacy/git/docs/site
ERROR - Unable to read git logs of '/tmp/docs_kvh_ua8a/index.md'. To ignore this error, set option 'ignoring_missing_git: true'
ERROR - Error reading page 'index.md': Cmd('git') failed due to: exit code(128)
cmdline: git log --date=short --format=%at -n 1 /tmp/docs_kvh_ua8a/index.md
stderr: 'fatal: /tmp/docs_kvh_ua8a/index.md: '/tmp/docs_kvh_ua8a/index.md' is outside repository'
[...]
I was able to pinpoint the issue to the fact that I'm using mkdocs-monorepo-plugin as well. It seems that the plugin copies the *.md files to a temporary directory before building them, and this way the other plugin cannot use git log
to find out the last updated date of the Markdown files.
Metadata
Metadata
Assignees
Labels
No labels