Comments (7)
This plugin uses the git history to determine the creation date and the revision date. However, many build systems optimize by using git clone --depth 1
, meaning they only download the last commit. That means the last revision date and the creation date become the same.
So you need to update your deployment. For instructions, see the README (screenshot below)
Or the documentation: https://timvink.github.io/mkdocs-git-revision-date-localized-plugin/index.html#note-when-using-build-environments
from mkdocs-git-revision-date-localized-plugin.
Yup, I did set in the ci.yml (forgot to update the issue text) fetch-update=0 like so
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
so the build deployment looked like this:
name: ci
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- name: Install Plugins
run: |
pip install \
"mkdocs-git-revision-date-localized-plugin" \
- run: mkdocs gh-deploy --force
But the issue still happens, unless im not doing it correctly?
from mkdocs-git-revision-date-localized-plugin.
I don't think it's setup correctly. Your first checkout (with V3) is correct, but is then overwritten on your second checkout (with V2).
Remove the line with - uses: actions/checkout@v2
from mkdocs-git-revision-date-localized-plugin.
@zerenxyz did that solve the issue for you?
from mkdocs-git-revision-date-localized-plugin.
Apologies, I have been out of work for some time since I made this issue and did not get the chance to test it, I willt test it tomorrow and let you know! Sorry for the delay!
from mkdocs-git-revision-date-localized-plugin.
@timvink I tested it with the solution and removing the - uses: actions/checkout@v2
was the issue and is now fixed! Thank you!
from mkdocs-git-revision-date-localized-plugin.
You're welcome!
from mkdocs-git-revision-date-localized-plugin.
Related Issues (20)
- Unable to set any configurations HOT 12
- Typo in variable names HOT 2
- The plugin breaks with the last mkdocs docker image HOT 3
- The plugin breaks with squidfunk/mkdocs-material:9.0.3 HOT 1
- Is there a way to turn off warnings? HOT 4
- Improve error message for dubious git ownership HOT 2
- if a file has no git logs, use the last modified timestamp instead of the current HOT 4
- which themes will this plugin work?
- Feature request: exclude specific commits when calculating the 'last update' calculation HOT 3
- Poor performance on large monorepos HOT 3
- Timeago setting results in incorrect items being added to extra_javascript HOT 2
- Create date not correct on Github pages HOT 4
- Document how to use sparse checkouts
- correctly populate `lastmod` of `sitemap.xml` HOT 2
- DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version HOT 1
- Cloudflare Pages fetch-depth HOT 6
- 1.2.3 breaks integration with Material for MkDocs HOT 5
- Whitelist / Negate certain excludes with a `!`? HOT 1
- Feature Request: Show datetime on hover when using timeago
- DeprecationWarning when using Mldocs Material 9.5.20 and Mkdocs 1.60 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdocs-git-revision-date-localized-plugin.