From c5741008edbeeaf59e6b9dea551d41f1cff3a23b Mon Sep 17 00:00:00 2001 From: Tom Pike Date: Sat, 8 Jun 2024 17:39:52 -0400 Subject: [PATCH] Update .readthedocs.yml --- .readthedocs.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 8ac9431f..baa32651 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -8,16 +8,6 @@ build: os: "ubuntu-22.04" tools: python: "3.10" - jobs: - #build an environment - pre-install: - - "export CUSTOM_ENV_DIR= /docs/build/" - - "mkdir -p $CUSTOM_ENV_DIR" - - "conda env create -p $CUSTOM_ENV_DIR -f docs/source/environment.yml" - - "export READTHEDOCS_VIRTUALENV_PATH=$CUSTOM_ENV_DIR" - post_install: - # Run the build commands within the specified environment - - "conda run -p $READTHEDOCS_VIRTUALENV_PATH sphinx-build -M html docs/source/ docs/build/" python: install: @@ -31,3 +21,15 @@ conda: sphinx: configuration: docs/source/conf.py fail_on_warning: false + + +jobs: + #build an environment + pre-install: + - "export CUSTOM_ENV_DIR= /docs/build/" + - "mkdir -p $CUSTOM_ENV_DIR" + - "conda env create -p $CUSTOM_ENV_DIR -f docs/source/environment.yml" + - "export READTHEDOCS_VIRTUALENV_PATH=$CUSTOM_ENV_DIR" + post_install: + # Run the build commands within the specified environment + - "conda run -p $READTHEDOCS_VIRTUALENV_PATH sphinx-build -M html docs/source/ docs/build/" \ No newline at end of file