Skip to content

Commit

Permalink
docs: setup uv for readthedocs (deepmodeling#3685)
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
njzjz and pre-commit-ci[bot] authored Apr 19, 2024
1 parent f550f24 commit e71e165
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 e71e165

Please sign in to comment.