MkDocs Git Revision Date Localized Plugin

1.5.1 · active · verified Sat Apr 11

This MkDocs plugin enables displaying the localized date of the last Git modification (and creation) of a Markdown file directly in your documentation. It is currently at version 1.5.1 and maintains an active release cadence with regular minor and patch updates.

Warnings

Install

Imports

Quickstart

To use the plugin, add it to the `plugins` section of your `mkdocs.yml` file. You can then reference `{{ git_revision_date_localized }}` and `{{ git_creation_date_localized }}` variables in your Markdown files.

# mkdocs.yml
site_name: My Awesome Docs

plugins:
  - git-revision-date-localized:
      enable_creation_date: true
      locale: en
      timezone: Europe/Berlin

# --- Create docs/index.md for testing ---
# In your project root, create a 'docs' directory:
# mkdir -p docs
# echo '# Welcome\n\nLast updated: {{ git_revision_date_localized }}\nCreated: {{ git_creation_date_localized }}' > docs/index.md

# --- Build and serve --- 
# mkdocs build
# mkdocs serve

view raw JSON →