mkdocs-git-revision-date-localized-plugin
Mkdocs plugin that enables displaying the localized date of the last git modification of a markdown file.
What it is and what it does
This is a MkDocs plugin that automatically extracts the date of the last git commit affecting each markdown page and displays it in localized format on the rendered site. It integrates with the MkDocs build pipeline to query git history and uses babel for locale-aware date formatting, plus timeago.js for relative date display (e.g., "2 days ago").
The plugin works out-of-the-box with the mkdocs-material theme, which natively displays the revision date at the bottom of pages. Other themes require manual template customization. A key constraint is that it needs full git history available during the build—shallow clones in CI/CD systems will fail unless configured to fetch the complete history.
Use it for:
- Display 'last updated' timestamps on documentation pages built with mkdocs-material to show readers when content was last revised.
- Automatically track page freshness in technical documentation without manual date maintenance in frontmatter.
- Generate localized date strings in multiple languages for international documentation sites using babel's locale support.
- Integrate git-based revision tracking into CI/CD documentation builds by configuring fetch-depth appropriately.
- Show relative timestamps (e.g., '3 weeks ago') via timeago.js for a more human-readable revision indicator.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A MkDocs plugin that displays the date of the last git modification for each page, with localized date formatting via babel and timeago.js.
Yes, if you use MkDocs with material theme or are willing to customize your theme. The plugin is actively maintained, has no known vulnerabilities, low install friction, and solves a common documentation need (showing last-modified dates) without manual effort. The main gotcha is ensuring your CI/CD system fetches full git history; once configured, it works reliably.
Install
mkdocs-git-revision-date-localized-plugin on PyPI
pip
pip install mkdocs-git-revision-date-localized-pluginuv
uv add mkdocs-git-revision-date-localized-pluginpoetry
poetry add mkdocs-git-revision-date-localized-pluginInstalling mkdocs-git-revision-date-localized-plugin
Before you install
Low friction installation as a pure-Python wheel. The package is actively maintained with a recent release (74 days ago) and has been stable since its initial 2019 release. Requires mkdocs and three other common dependencies (babel, gitpython, tzdata).
License in practice
MIT license is permissive; you can use, modify, and distribute this plugin freely in commercial and private projects with minimal restrictions.
Quickstart
pip install mkdocs-git-revision-date-localized-plugin
Then add to mkdocs.yml:
plugins:
- search
- git-revision-date-localized
Requires git repository access with full commit history; CI/CD systems must set fetch-depth to 0 (or equivalent) to retrieve modification dates correctly.
Verify before relying
- Whether the plugin works with all MkDocs themes or only material theme without additional customization.
- Performance impact on build times for large documentation sites with many pages.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — babel, gitpython, mkdocs, tzdata |
| Maintenance | actively maintained — 74 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,634,007/month — #3,702 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mkdocs_git_revision_date_localized_plugin-1.5.3-py3-none-any.whl
Keywords: mkdocs, plugin
Tags
More Documentation packages
Docutils converts plaintext documentation in…
unclear · top 1,000 on PyPI
SphinxSphinx generates professional documentation…
permissive · top 1,000 on PyPI
griffeGriffe extracts the complete structure and…
permissive · top 1,000 on PyPI
sphinxcontrib-serializinghtmlA Sphinx extension that outputs documentation…
permissive · top 1,000 on PyPI
alabasterAlabaster is a clean, responsive Sphinx theme…
permissive · top 1,000 on PyPI
sphinxcontrib-htmlhelpA Sphinx extension that generates HTML help…
permissive · top 1,000 on PyPI
mkdocs-git-authors-pluginA MkDocs plugin that extracts and displays the…
permissive · top 15,000 on PyPI
mkdocs-git-revision-date-pluginAdds a Git-based revision date to MkDocs…
permissive · top 15,000 on PyPI
mkdocs-git-committers-plugin-2MkDocs plugin that fetches and displays a list…
permissive · top 15,000 on PyPI
mkdocs-static-i18nA MkDocs plugin that adds static multi-language…
permissive · top 15,000 on PyPI
mdformat-mkdocsAn mdformat plugin that formats Markdown for…
permissive · top 15,000 on PyPI
mkdocs-print-site-pluginMkDocs plugin that generates a combined print…
permissive · top 15,000 on PyPI
mkdocs-materialMaterial for MkDocs is a professional theme and…
permissive · top 5,000 on PyPI
mkdocstringsAn MkDocs plugin that automatically generates…
permissive · top 5,000 on PyPI
mkdocs-multirepo-pluginMerges documentation from multiple Git…
permissive · top 15,000 on PyPI
mkdocs-videoA MkDocs plugin that embeds videos in…
permissive · top 15,000 on PyPI