blob: f2888fccad1b32c743c3e22f4368f4e33264891a [file] [log] [blame]
Jackie Huang1d5a75e2023-06-09 10:12:29 +08001# documentation only
weichenb6d26962019-11-04 01:43:18 -05002[tox]
3minversion = 2.0
4envlist =
5 docs,
6 docs-linkcheck,
weichenb6d26962019-11-04 01:43:18 -05007skipsdist = true
8
9[testenv:docs]
10basepython = python3
11deps =
12 sphinx
13 sphinx-rtd-theme
14 sphinxcontrib-httpdomain
15 recommonmark
16 lfdocs-conf
Jackie Huang1d5a75e2023-06-09 10:12:29 +080017 urllib3~=1.26.15
weichenb6d26962019-11-04 01:43:18 -050018
19commands =
20 sphinx-build -W -b html -n -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/html
weichenb6d26962019-11-04 01:43:18 -050021 echo "Generated docs available in {toxinidir}/docs/_build/html"
Jackie Huang1d5a75e2023-06-09 10:12:29 +080022allowlist_externals = echo
weichenb6d26962019-11-04 01:43:18 -050023
24[testenv:docs-linkcheck]
25basepython = python3
26deps = sphinx
27 sphinx-rtd-theme
28 sphinxcontrib-httpdomain
29 recommonmark
30 lfdocs-conf
Jackie Huang1d5a75e2023-06-09 10:12:29 +080031 urllib3~=1.26.15
weichenb6d26962019-11-04 01:43:18 -050032commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/linkcheck