[Docs] Add readthedocs.yml (#501)

* [Docs] Add readthedocs.yml

* include torch in readthedocs.yml

* add torch torchvision in docs.txt
This commit is contained in:
Zaida Zhou 2022-08-31 23:34:25 +08:00 committed by GitHub
parent 458f6d684e
commit a06bb7782b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

9
.readthedocs.yml Normal file
View File

@ -0,0 +1,9 @@
version: 2
formats: all
python:
version: 3.7
install:
- requirements: requirements/runtime.txt
- requirements: requirements/docs.txt

View File

@ -47,7 +47,7 @@ Package
:template: classtemplate.rst
call_command
check_install_package
install_package
get_installed_path
is_installed

View File

@ -45,7 +45,7 @@ Package
:nosignatures:
call_command
check_install_package
install_package
get_installed_path
is_installed

View File

@ -1,6 +1,9 @@
docutils==0.16.0
myst-parser
opencv-python
-e git+https://github.com/open-mmlab/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
sphinx==4.0.2
sphinx-copybutton
sphinx_markdown_tables
torch
torchvision