Skip to content

Commit 0e1ba01

Browse files
Fix wrong version in title in Readthedocs documentation (#3815)
Co-authored-by: Bouwe Andela <[email protected]>
1 parent edca991 commit 0e1ba01

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.readthedocs.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@ build:
1313
# DO NOT use mambaforge-*; that is currently sunsetted
1414
python: "miniconda-latest"
1515
jobs:
16-
post_create_environment:
17-
- conda run -n ${CONDA_DEFAULT_ENV} pip install . --no-deps
16+
post_checkout:
17+
# The ESMValTool repository is shallow i.e., has a .git/shallow,
18+
# therefore complete the repository with a full history in order
19+
# to allow setuptools-scm to correctly auto-discover the version.
20+
- git fetch --unshallow
21+
- git fetch --all
22+
pre_install:
23+
- git stash
24+
post_install:
25+
- git stash pop
1826

1927
# Declare the requirements required to build your docs
2028
conda:
@@ -26,6 +34,11 @@ sphinx:
2634
configuration: doc/sphinx/source/conf.py
2735
fail_on_warning: true
2836

37+
python:
38+
install:
39+
- method: pip
40+
path: .
41+
2942
# If using Sphinx, optionally build your docs in additional formats such as PDF
3043
formats:
3144
- pdf

0 commit comments

Comments
 (0)