Skip to content

Commit

Permalink
Try fixing RTD build
Browse files Browse the repository at this point in the history
  • Loading branch information
mfisher87 committed Jan 26, 2024
1 parent 2b6f2ce commit 57b1294
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,26 @@ version: 2

build:
os: "ubuntu-22.04"
tools:
python: "mambaforge-22.9"
# TODO: There must be a more readable way to express this...
commands:
# Install Quarto ( https://quarto.org/docs/download/tarball.html)
- "wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.4.534/quarto-1.4.534-linux-amd64.tar.gz"
- "mkdir ~/opt && tar -C ~/opt -xvzf quarto*.tar.gz"
- "mkdir ~/bin && ln -s ~/opt/quarto-1.4.534/bin/quarto ~/bin/quarto"

# Render site
# Install our deps and source code
# - "conda env create"
# - "conda activate snow-today"
- "pip install --editable ."

# Render site using the tarball install, because the Conda install isn't working right
- "cd doc && ~/bin/quarto render"

# Put the rendered site in place
- "mkdir --parents $READTHEDOCS_OUTPUT/html/"
- "mv doc/_site/* $READTHEDOCS_OUTPUT/html/."

conda:
environment: "environment.yml"

0 comments on commit 57b1294

Please sign in to comment.