mkdocs-git-revision-date-plugin
MkDocs plugin for setting revision date from git per markdown file.
What it is and what it does
This MkDocs plugin automatically extracts the last Git commit date for each documentation page and makes it available to your site templates and Markdown files. It integrates with MkDocs' plugin system and exposes the revision date as `page.meta.revision_date` in templates or `{{ git_revision_date }}` in Markdown, formatted in ISO date format (YYYY-mm-dd) by default. The plugin depends on mkdocs, GitPython, and jinja2.
The package is designed for documentation sites where you want to show readers when content was last updated, pulling that information directly from your Git history rather than maintaining it manually. It supports optional features like environment-gated builds, disabling Markdown substitution, and outputting dates as Python datetime objects for custom formatting via Jinja2.
Use it for:
- Display 'last updated' timestamps on documentation pages without manual maintenance
- Show readers when API documentation or guides were last revised based on Git commits
- Automatically populate footer or sidebar metadata with page revision dates in MkDocs sites
- Format revision dates using Jinja2 date filters when datetime output is enabled
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds a Git-based revision date to MkDocs documentation pages, displaying when each page was last modified according to Git history in ISO format (YYYY-mm-dd).
No—the package is abandoned (last release 2022-03-08, no commits since 2023-03-28) and will receive no maintenance or bug fixes. While it has low install friction and a permissive license, relying on unmaintained software for a core documentation feature creates long-term risk. Consider an actively maintained alternative or fork if this functionality is essential.
Install
mkdocs-git-revision-date-plugin on PyPI
pip
pip install mkdocs-git-revision-date-pluginuv
uv add mkdocs-git-revision-date-pluginpoetry
poetry add mkdocs-git-revision-date-pluginInstalling mkdocs-git-revision-date-plugin
Before you install
Low install friction with three straightforward runtime dependencies (mkdocs, GitPython, jinja2). However, the package is abandoned—last release was 2022-03-08, over 1620 days ago—so no maintenance or bug fixes should be expected.
License in practice
MIT license is permissive, allowing use, modification, and distribution with minimal restrictions, making it safe to integrate into most projects.
Quickstart
pip install mkdocs-git-revision-date-plugin
Then in mkdocs.yml:
plugins:
- search
- git-revision-date
In your template:
{% if page.meta.revision_date %}
Updated {{ page.meta.revision_date }}
{% endif %}
Requires a Git repository initialized in the documentation source directory; the plugin reads Git history to determine revision dates.
Verify before relying
- Whether the package works with current MkDocs versions (last tested 2022-03-08, no recent maintenance signal)
- Compatibility with Python versions beyond 3.4 in practice (requires_python states >=3.4 but no recent testing evidence)
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.4) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — mkdocs, GitPython, jinja2 |
| Maintenance | abandoned — 1,620 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 147,923/month — #11,048 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_plugin-0.3.2-py3-none-any.whl
Keywords: mkdocs, git, meta, yaml, frontmatter
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-revision-date-localized-pluginA MkDocs plugin that displays the date of the…
permissive · top 5,000 on PyPI
mkdocs-git-authors-pluginA MkDocs plugin that extracts and displays the…
permissive · top 15,000 on PyPI
mkdocs-rss-pluginGenerates RSS 2.0 and JSON Feed 1.1 feeds for…
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-awesome-pages-pluginA plugin for MkDocs that lets you customize…
permissive · top 5,000 on PyPI
mkdocs-with-pdfGenerates a single PDF file from an MkDocs…
permissive · top 15,000 on PyPI
mkdocs-videoA MkDocs plugin that embeds videos in…
permissive · top 15,000 on PyPI
mikemike deploys multiple versions of…
permissive · top 5,000 on PyPI
mkdocs-llmstxtMkDocs plugin that generates an /llms.txt file…
permissive · top 15,000 on PyPI
mkdocsMkDocs generates static HTML documentation…
permissive · top 5,000 on PyPI