Show last-modified date on documentation pages (mkdocs-git-revision-date-localized-plugin)
## Problem / Motivation The documentation site ([project.pages.drupalcode.org/ai](https://project.pages.drupalcode.org/ai/)) does not show when each page was last updated. Because the AI module moves quickly, readers have no easy way to judge whether a given page reflects the current state of the code, or whether it may be stale. ## Proposed resolution Add the [`mkdocs-git-revision-date-localized-plugin`](https://github.com/timvink/mkdocs-git-revision-date-localized-plugin) so that every documentation page displays a "last updated" date derived from the file's git history. The Material for MkDocs theme already has first-class support for this plugin: enabling the `material/content.action.edit` / document metadata renders the date in the page footer automatically. ### Implementation notes 1. Add the plugin to `mkdocs.yml` under `plugins`: ```yaml plugins: - git-revision-date-localized: enable_creation_date: true type: date ``` 2. Enable the matching Material feature so the date renders in the page footer: ```yaml theme: features: - content.action.view ``` 3. Add the plugin to the install instructions in `docs/documentation/index.md` and the CI/Pages build environment: ``` pip install mkdocs-git-revision-date-localized-plugin ``` 4. The plugin reads dates from git, so the Pages build job must check out the repository with full history (`fetch-depth: 0` equivalent) rather than a shallow clone, otherwise dates fall back to the build date. ## Remaining tasks - [ ] Add the plugin to `mkdocs.yml` - [ ] Add the dependency to the documentation install instructions and the Pages build - [ ] Verify full git history is available during the Pages build - [ ] Confirm the date renders correctly across the `mike`-versioned docs ## User interface changes A "last updated" (and optionally "created") date will appear on each documentation page.
issue