Skip to content

Commit

Permalink
fix rtd version (SciTools#4855)
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle authored Jul 7, 2022
1 parent 036c90c commit 573780b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ build:
os: ubuntu-20.04
tools:
python: mambaforge-4.10
jobs:
post_checkout:
- git fetch --unshallow
- git fetch --all

conda:
environment: requirements/ci/readthedocs.yml
Expand Down
2 changes: 2 additions & 0 deletions docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def autolog(message):
# |version|, also used in various other places throughout the built documents.

version = get_version("scitools-iris")
if version.endswith("+dirty"):
version = version[: -len("+dirty")]
autolog(f"Iris Version = {version}")

# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 573780b

Please sign in to comment.