Skip to content

Commit 801e369

Browse files
authored
Try to fix readthedocs build (#830)
* Try to fix readthedocs build * Don't use frozen * Try to get past hardlink warning * Collapsing sections * Set UV_PROJECT_ENVIRONMENT more often * Is it possible we don't need the build lines?
1 parent 751c275 commit 801e369

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.readthedocs.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
version: 2
22

33
build:
4-
os: ubuntu-22.04
4+
os: ubuntu-24.04
55
tools:
66
python: "3.12"
77
jobs:
8-
post_install:
8+
pre_create_environment:
99
- asdf plugin add uv
1010
- asdf install uv latest
1111
- asdf global uv latest
12-
- uv sync --group docs
13-
build:
14-
html:
15-
- uv run -- sphinx-build -M html docs $READTHEDOCS_OUTPUT
16-
pdf:
17-
- uv run -- sphinx-build -M latexpdf docs $READTHEDOCS_OUTPUT
12+
create_environment:
13+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
14+
install:
15+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --group docs --link-mode=copy
1816

1917
sphinx:
2018
configuration: docs/conf.py
19+
fail_on_warning: false
2120

2221
formats:
2322
- pdf

0 commit comments

Comments
 (0)