File tree Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Expand file tree Collapse file tree 2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 19
19
# Required
20
20
version : 2
21
21
22
+ submodules :
23
+ include : all
24
+ recursive : true
25
+
22
26
# Build documentation in the docs/ directory with Sphinx
23
27
# reference: https://docs.readthedocs.io/en/stable/config-file/v2.html#sphinx
24
28
sphinx :
@@ -28,6 +32,18 @@ build:
28
32
os : ubuntu-20.04
29
33
tools :
30
34
python : " 3.9"
35
+ apt_packages :
36
+ - texlive-latex-extra
37
+ - dvipng
38
+ - texlive-pictures
31
39
commands :
32
- - ls -lh .
33
- - mkdir -p _readthedocs/html
40
+ - printenv
41
+ - pwd ; ls -lh
42
+ - >
43
+ pip install -U pip ;
44
+ pip install -e . -q -r requirements/pytorch/docs.txt \
45
+ -f 'https://download.pytorch.org/whl/cpu/torch_stable.html' ;
46
+ pip list
47
+ # this need to be split so `sphinx-build` is picked from previous installation
48
+ - bash docs/rtfd-build.sh
49
+ - mkdir -p _readthedocs ; mv docs/build/html _readthedocs/html
Original file line number Diff line number Diff line change
1
+ # building for PRs and skip stable and latest states
2
+
3
+ if ! [ $READTHEDOCS_VERSION == " latest" -o $READTHEDOCS_VERSION == " stable" ];
4
+ then
5
+ cd ./docs/source-pytorch ;
6
+ export PL_FAST_DOCS_DEV=1 ;
7
+ make html --jobs $( nproc) ;
8
+ ls -lh ../build
9
+ else
10
+ echo " Void build... :-]" ;
11
+ mkdir -p ./docs/build/html
12
+ fi
You can’t perform that action at this time.
0 commit comments