From d4f9b0e39e7e347383564760cbb5f953ba8cd36d Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 17 Jul 2024 13:59:05 +0200 Subject: [PATCH] docs/RTD: fetch tags Otherwise "stable" will have wrong version tags under certain circumstances. --- .readthedocs.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 0258b66b..6d72724a 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -7,6 +7,11 @@ build: # Keep version in sync with tox.ini/docs and ci.yml/docs python: "3.12" jobs: + # Need the tags to calculate the version + post_checkout: + - git fetch --tags + + # Replace versions in sponsor URLs pre_build: - cog -rP docs/index.md