@@ -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
@@ -218,11 +219,53 @@ deps =
218219commands =
219220 coverage combine
220221 coverage xml -o " {env:COVERAGE_XML}"
221- codecov --file =" {env:COVERAGE_XML}" --env \
222- GITHUB_REF GITHUB_COMMIT GITHUB_USER GITHUB_WORKFLOW \
223- TRAVIS_BRANCH TRAVIS_BUILD_WEB_URL TRAVIS_COMMIT TRAVIS_COMMIT_MESSAGE \
224- APPVEYOR_REPO_BRANCH APPVEYOR_REPO_COMMIT \
225- APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
222+ codecov --file =" {env:COVERAGE_XML}" --env \
223+ GITHUB_REF GITHUB_COMMIT GITHUB_USER GITHUB_WORKFLOW \
224+ TRAVIS_BRANCH TRAVIS_BUILD_WEB_URL \
225+ TRAVIS_COMMIT TRAVIS_COMMIT_MESSAGE \
226+ APPVEYOR_REPO_BRANCH APPVEYOR_REPO_COMMIT \
227+ APPVEYOR_REPO_COMMIT_AUTHOR_EMAIL \
228+ APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED
229+
230+
231+ # #
232+ # Documentation
233+ # #
234+
235+ [testenv:docs]
236+
237+ description = build documentation
238+
239+ basepython = python3.8
240+
241+ deps =
242+ Sphinx ==2.2.1
243+ sphinx-rtd-theme ==0.4.3
244+
245+ commands =
246+ sphinx-build \
247+ -b html -d " {envtmpdir}/doctrees" \
248+ " {toxinidir}/docs" \
249+ " {toxworkdir}/docs/html"
250+
251+
252+ [testenv:docs-auto]
253+
254+ description = build documentation and rebuild automatically
255+
256+ basepython = python3.8
257+
258+ deps =
259+ Sphinx ==2.2.1
260+ sphinx-rtd-theme ==0.4.3
261+ sphinx-autobuild ==0.7.1
262+
263+ commands =
264+ sphinx-autobuild \
265+ -b html -d " {envtmpdir}/doctrees" \
266+ --host =localhost \
267+ " {toxinidir}/docs" \
268+ " {toxworkdir}/docs/html"
226269
227270
228271# #
0 commit comments