MkDocs plugin that enables displaying the localized date of the last git modification of a markdown file.
—
Comprehensive configuration options for customizing the git revision date localized plugin behavior, including date display formats, localization settings, timezone handling, file exclusion patterns, and performance optimization.
Core settings that control the fundamental behavior of the plugin.
("enabled", config_options.Type(bool, default=True))
("type", config_options.Type(str, default="date"))
("locale", config_options.Type(str, default=None))
("timezone", config_options.Type(str, default="UTC"))
("strict", config_options.Type(bool, default=True))Usage:
plugins:
- git-revision-date-localized:
enabled: true
type: date
locale: en
timezone: UTC
strict: trueParameters:
enabled: Enable or disable the plugintype: Date format type - "date", "datetime", "iso_date", "iso_datetime", "timeago", or "custom"locale: Language locale for date formatting (e.g., "en", "fr", "de")timezone: Timezone for date display (e.g., "UTC", "America/New_York")strict: Whether to treat warnings as errors when using mkdocs build --strictOptions for customizing how dates are displayed and formatted.
("custom_format", config_options.Type(str, default="%d. %B %Y"))
("fallback_to_build_date", config_options.Type(bool, default=False))Usage:
plugins:
- git-revision-date-localized:
type: custom
custom_format: "%B %d, %Y"
fallback_to_build_date: trueParameters:
custom_format: strftime format string for custom date formattingfallback_to_build_date: Use build date when git information is unavailableConfigure which files to process and how to handle git history.
("exclude", config_options.Type(list, default=[]))
("enable_git_follow", config_options.Type(bool, default=True))
("ignored_commits_file", config_options.Type(str, default=None))Usage:
plugins:
- git-revision-date-localized:
exclude:
- "drafts/*"
- "*.tmp"
enable_git_follow: true
ignored_commits_file: ".git-blame-ignore-revs"Parameters:
exclude: List of glob patterns for files to exclude from processingenable_git_follow: Follow file renames in git historyignored_commits_file: Path to file containing commit hashes to ignoreOptional features that enhance functionality but may impact performance.
("enable_creation_date", config_options.Type(bool, default=False))
("enable_parallel_processing", config_options.Type(bool, default=True))Usage:
plugins:
- git-revision-date-localized:
enable_creation_date: true
enable_parallel_processing: trueParameters:
enable_creation_date: Also track and display file creation datesenable_parallel_processing: Use multiprocessing for better performanceThe type configuration option supports these values:
custom_format parameterplugins:
- git-revision-date-localized:
type: date
locale: fr
timezone: Europe/Parisplugins:
- git-revision-date-localized:
enable_parallel_processing: true
exclude:
- "generated/*"
- "temp/*"plugins:
- git-revision-date-localized:
fallback_to_build_date: true
strict: falseInstall with Tessl CLI
npx tessl i tessl/pypi-mkdocs-git-revision-date-localized-plugin