@@ -5,6 +5,7 @@ envlist =
55 test-py{26,27,34,35,36,37,38,py,py3}
66 coverage_report
77 packaging
8+ docs
89
910skip_missing_interpreters = {tty:True:False}
1011
@@ -220,11 +221,53 @@ deps =
220221commands =
221222 coverage combine
222223 coverage xml -o " {env:COVERAGE_XML}"
223- codecov --file =" {env:COVERAGE_XML}" --env \
224- GITHUB_REF GITHUB_COMMIT GITHUB_USER GITHUB_WORKFLOW \
225- TRAVIS_BRANCH TRAVIS_BUILD_WEB_URL TRAVIS_COMMIT TRAVIS_COMMIT_MESSAGE \
226- APPVEYOR_REPO_BRANCH APPVEYOR_REPO_COMMIT \
227- APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
224+ codecov --file =" {env:COVERAGE_XML}" --env \
225+ GITHUB_REF GITHUB_COMMIT GITHUB_USER GITHUB_WORKFLOW \
226+ TRAVIS_BRANCH TRAVIS_BUILD_WEB_URL \
227+ TRAVIS_COMMIT TRAVIS_COMMIT_MESSAGE \
228+ APPVEYOR_REPO_BRANCH APPVEYOR_REPO_COMMIT \
229+ APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL \
230+ APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
231+
232+
233+ # #
234+ # Documentation
235+ # #
236+
237+ [testenv:docs]
238+
239+ description = build documentation
240+
241+ basepython = python3.8
242+
243+ deps =
244+ Sphinx ==2.2.1
245+ sphinx-rtd-theme ==0.4.3
246+
247+ commands =
248+ sphinx-build \
249+ -b html -d " {envtmpdir}/doctrees" \
250+ " {toxinidir}/docs" \
251+ " {toxworkdir}/docs/html"
252+
253+
254+ [testenv:docs-auto]
255+
256+ description = build documentation and rebuild automatically
257+
258+ basepython = python3.8
259+
260+ deps =
261+ Sphinx ==2.2.1
262+ sphinx-rtd-theme ==0.4.3
263+ sphinx-autobuild ==0.7.1
264+
265+ commands =
266+ sphinx-autobuild \
267+ -b html -d " {envtmpdir}/doctrees" \
268+ --host =localhost \
269+ " {toxinidir}/docs" \
270+ " {toxworkdir}/docs/html"
228271
229272
230273# #
0 commit comments