timvink / mkdocs-git-revision-date-localized-plugin

MkDocs plugin to add a last updated date to your site pages
https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html
MIT License
193 stars 39 forks source link

Created always shows Last update - GitHub Pages using custom domain #139

Closed avanbremen closed 2 months ago

avanbremen commented 2 months ago

Hi Tim, thanks for creating a great plugin!

We are using git-revision-date-localized on our site, however I noticed that 'Created' is always the same as 'Last update' after deploying to GitHub Pages. Note that we are using a custom domain (CNAME in the docs folder of our repository), perhaps that might be a factor here.

When running mkdocs serve, Last update and Created are correct on localhost.

Kind regards and all the best, Arjan

timvink commented 2 months ago

By default CI systems do a shallow clone, instead of cloning the entire history.

You need to update your CI settings. See the note on build systems in the docs: https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html

avanbremen commented 2 months ago

Thanks! Issue closed.