Skip to content

Commit 7955356

Browse files
committed
configure rtd to also use pixi
1 parent f217565 commit 7955356

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

.readthedocs.yaml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,18 @@ version: 2
22

33
build:
44
os: ubuntu-22.04
5-
tools:
6-
python: "3.11"
75
jobs:
86
post_checkout:
97
- (git --no-pager log --pretty="tformat:%s" -1 | grep -vqF "[skip-rtd]") || exit 183
108
- git fetch --unshallow || true
9+
create_environment:
10+
- asdf plugin add pixi
11+
- asdf install pixi latest
12+
- asdf global pixi latest
1113
pre_install:
1214
- git update-index --assume-unchanged docs/conf.py
13-
14-
python:
15-
install:
16-
- requirements: docs/requirements.txt
17-
- method: pip
18-
path: .
19-
20-
sphinx:
21-
configuration: docs/conf.py
22-
fail_on_warning: true
15+
install:
16+
- pixi install -e docs
17+
build:
18+
html:
19+
- pixi run -e docs build-docs-rtd

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ python = "3.13.*"
171171
[tool.pixi.feature.docs.tasks]
172172
build-docs = { cmd = "rm -rf generated/; python -m sphinx -b html -w warnings.log -W -Tn -j auto . _build", cwd = "docs" }
173173
autobuild-docs = { cmd = "sphinx-autobuild -b html -w warnings.log -W -Tn -j auto . _build", cwd = "docs" }
174+
build-docs-rtd = { cmd = "python -m sphinx -b html -W -T -j auto . $READTHEDOCS_OUTPUT/html", cwd = "docs" }
174175

175176
[tool.pixi.environments]
176177
tests = ["tests"]

0 commit comments

Comments
 (0)