Skip to content

Commit 20ac0b4

Browse files
Attempt to configure RTD to use pixi
1 parent cffa005 commit 20ac0b4

File tree

3 files changed

+21
-83
lines changed

3 files changed

+21
-83
lines changed

devtools/conda-envs/docs_env.yaml

Lines changed: 0 additions & 33 deletions
This file was deleted.

devtools/conda-envs/test_env.yaml

Lines changed: 0 additions & 49 deletions
This file was deleted.

readthedocs.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,27 @@ version: 2
55
build:
66
os: ubuntu-22.04
77
tools:
8-
python: "mambaforge-4.10"
8+
python: "3.12"
9+
jobs:
10+
create_environment:
11+
- asdf plugin add pixi
12+
- asdf install pixi latest
13+
- asdf global pixi latest
14+
pre_install:
15+
# https://docs.readthedocs.com/platform/stable/build-customization.html#avoid-having-a-dirty-git-index
16+
- git update-index --assume-unchanged environment.yml docs/conf.py
17+
install:
18+
- pixi install -e doc
19+
post_install:
20+
# Use pixi to run sphinx-build or mkdocs
21+
- echo $PATH
22+
- echo '#! /bin/bash\npixi run -e doc sphinx-build "$@"' > /bin/sphinx-build
23+
- echo '#! /bin/bash\npixi run -e doc mkdocs "$@"' > /bin/mkdocs
24+
- chmod +x /bin/sphinx-build /bin/mkdocs
25+
26+
# build:
27+
# html:
28+
# - pixi run -e doc sphinx-build -W -T -b html docs $READTHEDOCS_OUTPUT/html
929

1030
python:
1131
install:

0 commit comments

Comments
 (0)