diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 0e0a8fa5..afb0deef 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -1,17 +1,18 @@ version: 2 -build: - os: "ubuntu-20.04" - tools: - python: "3.10" - -# Build from the docs/ directory with Sphinx sphinx: - configuration: docs/source/conf.py + configuration: docs/source/conf.py -# Explicitly set the version of Python and its requirements -python: - install: - - requirements: docs/requirements.txt - - method: pip - path: . +build: + os: ubuntu-24.04 + tools: + python: "3.13" + jobs: + pre_create_environment: + - asdf plugin add uv + - asdf install uv latest + - asdf global uv latest + create_environment: + - uv venv "${READTHEDOCS_VIRTUALENV_PATH}" + install: + - UV_PROJECT_ENVIRONMENT="${READTHEDOCS_VIRTUALENV_PATH}" uv sync --extra doc diff --git a/docs/source/conf.py b/docs/source/conf.py index f31fb9af..a9fa9905 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -12,7 +12,6 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # from datetime import date -from pathlib import Path import git @@ -257,14 +256,4 @@ sphinx_gallery_conf = { "examples_dirs": "../../examples", # path to your example scripts "gallery_dirs": "auto_examples", # path to where to save gallery generated output - "binder": { - "org": "Owkin", - "repo": "PyDESeq2", - "branch": current_commit, # Can be any branch, tag, or commit hash. - # Use a branch that hosts your docs. - "binderhub_url": "https://mybinder.org", # public binderhub url - "dependencies": str(Path(__file__).parents[2] / "requirements.txt"), - "notebooks_dir": "jupyter_notebooks", - "use_jupyter_lab": True, - }, }