Giter Site home page Giter Site logo

Comments (7)

timvink avatar timvink commented on June 12, 2024

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)

image

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.

zerenxyz avatar zerenxyz commented on June 12, 2024

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.

timvink avatar timvink commented on June 12, 2024

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.

timvink avatar timvink commented on June 12, 2024

@zerenxyz did that solve the issue for you?

from mkdocs-git-revision-date-localized-plugin.

zerenxyz avatar zerenxyz commented on June 12, 2024

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.

zerenxyz avatar zerenxyz commented on June 12, 2024

@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.

timvink avatar timvink commented on June 12, 2024

You're welcome!

from mkdocs-git-revision-date-localized-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.