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
198 stars 40 forks source link

[pr discuss] Add {{git_creation_date_localized}} #49

Closed PegasisForever closed 3 years ago

PegasisForever commented 3 years ago

Hi!

I added the ability for this plugin to add creation dates to pages. (Because I need it for my personal blog) (repo)

Since CONTRIBUTING.md wrote "...That means not extending the functionality of this plugin", I'm wondering whether my pr of adding this functionality will be accepted?

If it won't, I won't bother writing tests for it :)

timvink commented 3 years ago

Hi @PegasisForever !

Thanks for this :) I had a look at the changes you made link and looks nice!

I'm open to adding a git_creation_date_localized. It's relatively cheap, because it just means a bit more parsing of the git log output we already have. Some thoughts:

We can align on implementation specifics if you open a PR. I have been planning to create a documentation website for this plugin, I will pick that up so we can document this feature there.

PegasisForever commented 3 years ago

Performance:

I found out git log has an reverse option so we can just get the first log in the reverse order.

Theme integration:

Yes, I'll deal with that.

I'll open a pr later today (or tomorrow).