Skip to content

Commit affc0ed

Browse files
Modify readthedocs config
1 parent f1a29a7 commit affc0ed

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.readthedocs.yaml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
version: 2
22

33
build:
4-
os: ubuntu-22.04
4+
os: ubuntu-24.04
55
tools:
6-
python: latest
7-
commands:
8-
- asdf plugin add uv
9-
- asdf install uv latest
10-
- asdf global uv latest
11-
- uv python install 3.13
12-
- uv sync -p 3.13 --frozen --extra rhino --extra dxf --no-group dev --no-group lint --no-group test
13-
- uv run -p 3.13 --no-sync -m sphinx -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html
6+
python: "3.13"
7+
jobs:
8+
# https://docs.readthedocs.com/platform/stable/build-customization.html#install-dependencies-with-uv
9+
pre_create_environment:
10+
- asdf plugin add uv
11+
- asdf install uv latest
12+
- asdf global uv latest
13+
- uv python install 3.13
14+
create_environment:
15+
- uv venv
16+
install:
17+
- uv sync -p 3.13 --frozen --extra rhino --extra dxf --no-group dev --no-group lint --no-group test
18+
build:
19+
html:
20+
- uv run -p 3.13 --no-sync sphinx-build -T -b html -d docs/_build/doctrees -D language=en docs $READTHEDOCS_OUTPUT/html

0 commit comments

Comments
 (0)