From 2047b4af7b4ba9515d0052310c09b1a4e89c32e5 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 27 Feb 2025 07:02:26 +0530 Subject: [PATCH 1/2] Unshallow the git clone for the RTD build --- .readthedocs.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.readthedocs.yml b/.readthedocs.yml index 325a27b8a..9f37a14da 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -10,6 +10,13 @@ build: os: ubuntu-22.04 tools: python: "3.11" + + # Unshallow the git clone to allow vcs versioning to pick + # up tags properly + jobs: + post_checkout: + - git fetch --unshallow || true + # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py From e9cac489e7565bf15227489c44a91942bb9536b5 Mon Sep 17 00:00:00 2001 From: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com> Date: Thu, 27 Feb 2025 15:25:22 +0530 Subject: [PATCH 2/2] Don't force-pass `git fetch --unshallow` --- .readthedocs.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 9f37a14da..e72d336e3 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -15,7 +15,7 @@ build: # up tags properly jobs: post_checkout: - - git fetch --unshallow || true + - git fetch --unshallow # Build documentation in the docs/ directory with Sphinx sphinx: