Skip to content

Commit

Permalink
docs: setup uv for readthedocs (#3685)
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit e71e165)
  • Loading branch information
njzjz committed Jul 3, 2024
1 parent 8514b3d commit 018afc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -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.*

0 comments on commit 018afc8

Please sign in to comment.