forked from zudi-lin/pytorch_connectomics
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.readthedocs.yaml
executable file
·35 lines (30 loc) · 1.04 KB
/
.readthedocs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
build:
os: ubuntu-22.04
tools:
python: "mambaforge-22.9"
commands:
- mamba env create --quiet --name latest --file docs/environment_docs.yml
- pip install --editable .
- git clone https://github.com/pytorch/pytorch_sphinx_theme
- pip install -e pytorch_sphinx_theme
- python -m sphinx -T -b html -d _build/doctrees -D language=en ./docs/source $READTHEDOCS_OUTPUT/html
# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: docs/source/conf.py
# Specify dependency based on conda environment
conda:
environment: docs/environment_docs.yml
# Optionally set the version of Python and requirements required to build your docs
# python:
# version: 3.8
# install:
# - requirements: docs/requirements.txt
# - requirements: docs/readthedocs.txt
# - method: pip
# path: .
# system_packages: false