Skip to content

Commit beb23fe

Browse files
committed
update RTD config
1 parent 37d46a9 commit beb23fe

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

.readthedocs.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,29 @@
88
# Required
99
version: 2
1010

11-
sphinx:
12-
# Path to your Sphinx configuration file.
13-
configuration: docs/conf.py
14-
1511
build:
1612
os: ubuntu-22.04
1713
tools:
18-
python: "3.11"
14+
python: latest
1915
apt_packages:
2016
- libgl1-mesa-dev
2117
- libxkbcommon-x11-0
2218
- graphviz
19+
jobs:
20+
pre_create_environment:
21+
- >-
22+
UV_INSTALL_DIR="${HOME}/.local/bin" &&
23+
curl -LsSf https://astral.sh/uv/install.sh | sh
24+
- ${HOME}/.local/bin/uv sync --group docs
25+
build:
26+
html:
27+
- >-
28+
${HOME}/.local/bin/uv run
29+
sphinx-build docs docs/_build/html
30+
post_build:
31+
- mkdir -p ${READTHEDOCS_OUTPUT}/html/
32+
- mv docs/_build/html/* ${READTHEDOCS_OUTPUT}/html
2333

24-
python:
25-
install:
26-
- method: pip
27-
path: .
28-
- requirements: docs/requirements.txt
34+
sphinx:
35+
# Path to your Sphinx configuration file.
36+
configuration: docs/conf.py

0 commit comments

Comments
 (0)