Skip to content

Commit d52c106

Browse files
DOC update .readthedocs.yaml to handle installation through uv (#421)
* docs: update .readthedocs.yaml to handle installation through uv * docs: update .readthedocs.yaml to handle installation through uv * docs: update .readthedocs.yaml to handle installation through uv * docs: update .readthedocs.yaml to handle installation through uv * docs: remove binder
1 parent 7684230 commit d52c106

File tree

2 files changed

+14
-24
lines changed

2 files changed

+14
-24
lines changed

.readthedocs.yaml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
version: 2
22

3-
build:
4-
os: "ubuntu-20.04"
5-
tools:
6-
python: "3.10"
7-
8-
# Build from the docs/ directory with Sphinx
93
sphinx:
10-
configuration: docs/source/conf.py
4+
configuration: docs/source/conf.py
115

12-
# Explicitly set the version of Python and its requirements
13-
python:
14-
install:
15-
- requirements: docs/requirements.txt
16-
- method: pip
17-
path: .
6+
build:
7+
os: ubuntu-24.04
8+
tools:
9+
python: "3.13"
10+
jobs:
11+
pre_create_environment:
12+
- asdf plugin add uv
13+
- asdf install uv latest
14+
- asdf global uv latest
15+
create_environment:
16+
- uv venv "${READTHEDOCS_VIRTUALENV_PATH}"
17+
install:
18+
- UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --extra doc

docs/source/conf.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# documentation root, use os.path.abspath to make it absolute, like shown here.
1313
#
1414
from datetime import date
15-
from pathlib import Path
1615

1716
import git
1817

@@ -257,14 +256,4 @@
257256
sphinx_gallery_conf = {
258257
"examples_dirs": "../../examples", # path to your example scripts
259258
"gallery_dirs": "auto_examples", # path to where to save gallery generated output
260-
"binder": {
261-
"org": "Owkin",
262-
"repo": "PyDESeq2",
263-
"branch": current_commit, # Can be any branch, tag, or commit hash.
264-
# Use a branch that hosts your docs.
265-
"binderhub_url": "https://mybinder.org", # public binderhub url
266-
"dependencies": str(Path(__file__).parents[2] / "requirements.txt"),
267-
"notebooks_dir": "jupyter_notebooks",
268-
"use_jupyter_lab": True,
269-
},
270259
}

0 commit comments

Comments
 (0)