From e71e165dee6dd5d38d75562d420177844b322ad6 Mon Sep 17 00:00:00 2001 From: Jinzhe Zeng Date: Thu, 18 Apr 2024 22:39:01 -0400 Subject: [PATCH] docs: setup uv for readthedocs (#3685) Signed-off-by: Jinzhe Zeng Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .readthedocs.yml | 9 ++++++--- doc/requirements.txt | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yml b/.readthedocs.yml index 6f3ff6be3f..e8b81a4109 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -2,7 +2,10 @@ version: 2 build: os: ubuntu-20.04 tools: - python: mambaforge-4.10 -conda: - environment: doc/environment.yml + python: "3.11" + jobs: + post_create_environment: + - pip install uv + post_install: + - VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH uv pip install -r doc/requirements.txt formats: all diff --git a/doc/requirements.txt b/doc/requirements.txt index 1d39662bb4..b011900147 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1 +1,4 @@ -.[docs,cpu] +.[docs,cpu,torch] +exhale @ https://github.com/svenevs/exhale/archive/2759a394268307b88f5440487ae0920ee4ebf81e.zip +# https://github.com/mcmtroffaes/sphinxcontrib-bibtex/issues/309 +docutils!=0.18.*,!=0.19.*