Skip to content

Commit 5f9ac90

Browse files
committed
trying to make readthedocs work with uv
1 parent 46e43e0 commit 5f9ac90

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

.readthedocs.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,20 @@ version: 2
99

1010
build:
1111

12-
os: "ubuntu-24.04"
12+
os: ubuntu-24.04
1313

1414
tools:
1515

1616
python: "3.12"
1717

18-
commands:
19-
20-
- pip install uv
21-
- cd docs
22-
- uv run make html
23-
- cd ..
18+
jobs:
19+
create_environment:
20+
- pip install uv
21+
- uv sync
22+
23+
build:
24+
html:
25+
- make -C docs/source html BUILDDIR=$READTHEDOCS_OUTPUT
2426

2527
# Build documentation in the "docs/" directory with Sphinx
2628

docs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ BUILDDIR = build
1010

1111
# Put it first so that "make" without argument is like "make help".
1212
help:
13-
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
@uv run $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1414

1515
.PHONY: help Makefile
1616

1717
# Catch-all target: route all unknown targets to Sphinx using the new
1818
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
1919
%: Makefile
20-
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
20+
@uv run $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 commit comments

Comments
 (0)