1350 support git revision date#1373
1350 support git revision date#1373squidfunk merged 4 commits intosquidfunk:masterfrom timvink:1350-support-git-revision-date
Conversation
|
Wow, how did you manage to provide all the translations? |
|
Very cool. Could we make the variable configurable? Currently there are five variables and only one is integrated into Material, so it's not possible to change by configuration, i.e. from you docs: Could we make that one variable which is set according to configuration? For example: plugins:
- git-revision-date-localized
type: "date" | "time" | "iso_date" | "iso_time" | "timeago"... with |
|
Yes much cleaner, good idea. Will update package and this PR and let you know! |
|
Looks great! Can you explain why there are two variables? {% if page.meta.git_revision_date_localized %}
...
{% elif page.meta.revision_date %}
...Also, could we change |
|
All right I updated this PR, including the docs. Note I decided to also 'silently' support It's undocumented & I was not sure if this is desirable functionality. I tested these four variants:
|
On it! |
|
Two more questions:
|
Good catch, go for it. We should create a
The contributing section contains links to the guides for setting up the dev environment and the build process which contains a note on the automatically generated files, see this link. I've missed that you made your changes in the |
|
So I updated I'm having trouble running Also, did you see my comment on silently supporting |
|
Awesome, thanks for your work! Will check it out and rebuild the theme.
No need to spend more time, but could you paste the actual error here?
Jep, sounds like a good idea. |
|
BTW, I just saw that the installation guide is missing the |
|
Also, it's not working for me: plugins:
- git-revision-date-localized |
|
Okay, so maybe it had something to do with my Python environment. Gosh, I hate how Python didn't solve this in a way that is easy up to now (as opposed to If I remove the plugin, everything is fine. |
|
That's annoying.. will look in to it asap (later today) |
|
Note: I installed in a clean virtual environment. Python version is 3.7. What I did was: |
|
…k#1373) * squidfunk#1350 update base template to include git revision date * squidfunk#1350 add localized revision date * squidfunk#1350 support for v0.3 of mkdocs-git-revision-date-localized-plugin * squidfunk#1350 add translations for source.revision.date

Closes #1350