From 1e3990f1d873fcc5494d0f57c48d7d2fa88cee93 Mon Sep 17 00:00:00 2001 From: Bill Little Date: Tue, 12 Jul 2022 16:09:43 +0100 Subject: [PATCH] add readthedocs common environment link (#275) --- .readthedocs.yml | 4 ++++ README.md | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 78cfd978..87cdfcab 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -10,6 +10,10 @@ build: # perform a "git fetch --unshallow" when the cf-units repo # becomes incomplete i.e., there is a .git/shallow. - git fetch --all + pre_install: + # create a "common" link to the underlying rtd conda environment, + # which maybe named "latest", "stable" or the cf-units version + - ln -s ${CONDA_ENVS_PATH}/${CONDA_DEFAULT_ENV} ${CONDA_ENVS_PATH}/common conda: environment: requirements/cf-units.yml diff --git a/README.md b/README.md index 75d10fe9..22860511 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ - [Overview](#overview) - [Example](#example) -- [Get in touch](#get-in-touch) -- [Credits, copyright and license](#credits-copyright-and-license) +- [Get in Touch](#get-in-touch) +- [Credits, Copyright and License](#credits-copyright-and-license) ## Overview