From 284d2797052dc5ab42a6eefea709a8352e3df7aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 17 Nov 2026 13:44:00 +0100 Subject: [PATCH 1/2] docs: document git-revision-date-localized plugin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timothée Mazzucotelli --- docs/compatibility/mkdocs/plugins.md | 40 +++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/docs/compatibility/mkdocs/plugins.md b/docs/compatibility/mkdocs/plugins.md index 672247e..15d017e 100644 --- a/docs/compatibility/mkdocs/plugins.md +++ b/docs/compatibility/mkdocs/plugins.md @@ -347,6 +347,44 @@ For more information, see [plugin documentation][gh-admonitions]. --- +### `git-revision-date-localized` + +_Since [0.1.2]_ + +Display localized revision and creation dates from Git history. + +
+ +| Setting | Default | Description | +| ------- | ------- | ----------- | +| `enabled` | `true` | Whether Git dates are added to pages. | +| `type` | `date` | Display format: `date`, `datetime`, `iso_date`, `iso_datetime`, `timeago`, or `custom`. | +| `locale` | `null` | Locale used when no page-level `locale` is set; the theme language is used when omitted. | +| `timezone` | `UTC` | IANA time zone used for date display. | +| `custom_format` | `%d. %B %Y` | Localized strftime pattern used by `type: custom`. | +| `enable_creation_date` | `false` | Whether the original creation date is included. | +| `enable_git_follow` | `true` | Whether file history is followed across renames and moves. | +| `ignored_commits_file` | `null` | File containing revision commits to ignore, relative to the configuration directory; creation history is preserved. | +| `exclude` | `[]` | Source paths or glob patterns excluded from date processing, relative to `docs_dir`. | +| `fallback_to_build_date` | `false` | Whether Git errors are replaced with the build timestamp. | +| `strict` | `true` | Fallback diagnostics are emitted as warnings; with `false`, informational messages are used. | +| `enable_parallel_processing` | `true` | Whether per-page history queries are run concurrently. | + +
+ +**Differences**: + +- **Localization:** ICU is used instead of Babel. Small differences in localized wording, punctuation, and custom formats are possible. +- **Relative dates:** Browser-relative dates are formatted with `Intl.RelativeTimeFormat` instead of timeago.js. Relative wording and rounding can differ. An ISO date is provided for printing. +- **Shallow clones:** Available history is used with a warning. Revision and creation dates may be incomplete. Full history must be fetched through the checkout configuration; repositories are never fetched or modified by Zensical. +- **Fallback timestamps:** One build timestamp is shared by creation and revision fallbacks. Warnings caused by separate fallback clock reads upstream are avoided. +- **Caching and preview:** Raw history results are cached between builds. Git state is refreshed on the next content rebuild during `zensical serve`; Git metadata is not watched separately. +- **Parallel processing:** History queries are bounded by the available CPU count, with at most ten concurrent queries. With `enable_parallel_processing: false`, queries are run serially. + +For more information, see the [plugin documentation][git-revision-date-localized]. + +--- + ### `glightbox` _Since [0.0.35]_ @@ -1110,7 +1148,6 @@ do not imply release dates. - [ ] [`git-authors`][git-authors] - [ ] [`git-committers`][git-committers] -- [ ] [`git-revision-date-localized`][git-revision-date-localized] _Review our public [backlog] for additional plugins we may support later._ @@ -1141,6 +1178,7 @@ without using their original codebases. [0.0.72]: https://github.com/zensical/zensical/releases/tag/v0.0.72 [0.0.74]: https://github.com/zensical/zensical/releases/tag/v0.0.74 [0.1.1]: https://github.com/zensical/zensical/releases/tag/v0.1.1 +[0.1.2]: https://github.com/zensical/zensical/releases/tag/v0.1.2 [Additional JavaScript]: ../../customization.md#additional-javascript [api-autonav]: https://github.com/tlambert03/mkdocs-api-autonav#configuration [audio]: https://github.com/jfcmontmorency/mkdocs-audio From b4d579904f310670c33de9980b1402d95cccd2a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 17 Nov 2026 19:39:35 +0100 Subject: [PATCH 2/2] chore: apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Timothée Mazzucotelli --- docs/compatibility/mkdocs/plugins.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/compatibility/mkdocs/plugins.md b/docs/compatibility/mkdocs/plugins.md index 15d017e..8aa47a3 100644 --- a/docs/compatibility/mkdocs/plugins.md +++ b/docs/compatibility/mkdocs/plugins.md @@ -349,7 +349,7 @@ For more information, see [plugin documentation][gh-admonitions]. ### `git-revision-date-localized` -_Since [0.1.2]_ +_Since [0.1.3]_ Display localized revision and creation dates from Git history. @@ -1178,7 +1178,7 @@ without using their original codebases. [0.0.72]: https://github.com/zensical/zensical/releases/tag/v0.0.72 [0.0.74]: https://github.com/zensical/zensical/releases/tag/v0.0.74 [0.1.1]: https://github.com/zensical/zensical/releases/tag/v0.1.1 -[0.1.2]: https://github.com/zensical/zensical/releases/tag/v0.1.2 +[0.1.3]: https://github.com/zensical/zensical/releases/tag/v0.1.3 [Additional JavaScript]: ../../customization.md#additional-javascript [api-autonav]: https://github.com/tlambert03/mkdocs-api-autonav#configuration [audio]: https://github.com/jfcmontmorency/mkdocs-audio