From 0e1ba01d1bd8b9166eb5be2255eca070c28341a7 Mon Sep 17 00:00:00 2001 From: Valeriu Predoi Date: Fri, 22 Nov 2024 16:34:19 +0000 Subject: [PATCH] Fix wrong version in title in Readthedocs documentation (#3815) Co-authored-by: Bouwe Andela --- .readthedocs.yaml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 974ac2ee78..3b66ab14aa 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -13,8 +13,16 @@ build: # DO NOT use mambaforge-*; that is currently sunsetted python: "miniconda-latest" jobs: - post_create_environment: - - conda run -n ${CONDA_DEFAULT_ENV} pip install . --no-deps + post_checkout: + # The ESMValTool repository is shallow i.e., has a .git/shallow, + # therefore complete the repository with a full history in order + # to allow setuptools-scm to correctly auto-discover the version. + - git fetch --unshallow + - git fetch --all + pre_install: + - git stash + post_install: + - git stash pop # Declare the requirements required to build your docs conda: @@ -26,6 +34,11 @@ sphinx: configuration: doc/sphinx/source/conf.py fail_on_warning: true +python: + install: + - method: pip + path: . + # If using Sphinx, optionally build your docs in additional formats such as PDF formats: - pdf