Skip to content

Commit 204b197

Browse files
ChoiByungWookChuyang Deng
authored and
Chuyang Deng
committed
add sphinx-build in tox (#653)
1 parent c6f6d82 commit 204b197

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

tox.ini

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# and then run "tox" from this directory.
55

66
[tox]
7-
envlist = py27,py35,flake8,pylint
7+
envlist = py27,py35,flake8,pylint,sphinx
88
skip_missing_interpreters = False
99

1010
[travis]
@@ -72,3 +72,28 @@ deps =
7272
pylint==2.1.1
7373
commands =
7474
python -m pylint --rcfile=.pylintrc -j 0 src/sagemaker
75+
76+
[testenv:sphinx]
77+
basepython = python3
78+
changedir = doc
79+
# Based on: https://github.com/rtfd/readthedocs.org/blob/8f0c78dde5edcc85acf90462a8518735a25482d3/readthedocs/doc_builder/python_environments.py#L263
80+
install_command = python -m pip install --upgrade -I {packages}
81+
# Based on: https://github.com/rtfd/readthedocs.org/blob/8f0c78dde5edcc85acf90462a8518735a25482d3/readthedocs/doc_builder/python_environments.py#L280
82+
deps =
83+
Pygments==2.2.0
84+
setuptools<40
85+
docutils==0.13.1
86+
mock==1.0.1
87+
pillow==2.6.1
88+
alabaster>=0.7,<0.8,!=0.7.5
89+
commonmark==0.5.4
90+
recommonmark==0.4.0
91+
sphinx<1.8
92+
sphinx-rtd-theme<0.5
93+
readthedocs-sphinx-ext<0.6
94+
# pip install requirements.txt is separate as RTD does it in separate steps
95+
# having the requirements.txt installed in deps above results in Double Requirement exception
96+
# https://github.com/pypa/pip/issues/988
97+
commands =
98+
pip install --exists-action=w -r requirements.txt
99+
sphinx-build -T -W -b html -d _build/doctrees-readthedocs -D language=en . _build/html

0 commit comments

Comments
 (0)