diff --git a/.readthedocs.yml b/.readthedocs.yml index 63c4798050..8ec8ab145c 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -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 diff --git a/docs/src/conf.py b/docs/src/conf.py index 4025d8159f..4f1eae7403 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -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 ---------------------------------------------------