From 1395dd9c280b3d02f95a95748de1db26514b217e Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Mon, 28 Jul 2025 14:12:46 +0100 Subject: [PATCH] [Docs] Add revision date to rendered docs (#21752) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- .readthedocs.yaml | 3 +++ mkdocs.yaml | 5 +++++ requirements/docs.txt | 1 + 3 files changed, 9 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 98c3be25f7..4329750090 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,6 +7,9 @@ build: os: ubuntu-22.04 tools: python: "3.12" + jobs: + post_checkout: + - git fetch --unshallow || true mkdocs: configuration: mkdocs.yaml diff --git a/mkdocs.yaml b/mkdocs.yaml index 8f731a2c1f..78f1c5b77c 100644 --- a/mkdocs.yaml +++ b/mkdocs.yaml @@ -62,6 +62,11 @@ plugins: - autorefs - awesome-nav - glightbox + - git-revision-date-localized: + # exclude autogenerated files + exclude: + - argparse/* + - examples/* # For API reference generation - api-autonav: modules: ["vllm"] diff --git a/requirements/docs.txt b/requirements/docs.txt index 950906b2ff..9e56c9573b 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -5,6 +5,7 @@ mkdocstrings-python mkdocs-gen-files mkdocs-awesome-nav mkdocs-glightbox +mkdocs-git-revision-date-localized-plugin python-markdown-math regex ruff