Skip to content

Commit

Permalink
Update .readthedocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tpike3 committed Jun 8, 2024
1 parent f94113a commit c574100
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/"

0 comments on commit c574100

Please sign in to comment.