Merge "Speedup documentation page generation"

This commit is contained in:
Zuul 2022-01-21 14:20:13 +00:00 committed by Gerrit Code Review
commit 90257b5a67

16
tox.ini
View File

@ -330,7 +330,6 @@ deps =
commands = commands =
[testenv:linkcheck] [testenv:linkcheck]
allowlist_externals = sh allowlist_externals = sh
basepython = {[docs]basepython} basepython = {[docs]basepython}
envdir = {[docs]envdir} envdir = {[docs]envdir}
@ -338,17 +337,12 @@ deps = {[docs]deps}
commands = commands =
{[docs]commands} {[docs]commands}
sh -c 'cd {toxinidir}/doc/source && sphinx-build -W -b linkcheck . ../build/linkcheck' sh -c 'cd {toxinidir}/doc/source && sphinx-build -W -b linkcheck . ../build/linkcheck'
# Do not install any requirements. We want this to be fast and work even if usedevelop = true
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
usedevelop = false
skipsdist = true skipsdist = true
skip_install = true skip_install = true
[testenv:docs] [testenv:docs]
allowlist_externals = sh allowlist_externals = sh
basepython = {[docs]basepython} basepython = {[docs]basepython}
envdir = {[docs]envdir} envdir = {[docs]envdir}
@ -357,13 +351,9 @@ changedir = doc/source
commands = commands =
{[testenv:linkcheck]commands} {[testenv:linkcheck]commands}
sphinx-build -W -b html . ../build/html sphinx-build -W -b html . ../build/html
# Do not install any requirements. We want this to be fast and work even if usedevelop = true
# system dependencies are missing, since it's used to tell you what system
# dependencies are missing! This also means that bindep must be installed
# separately, outside of the requirements files.
usedevelop = false
skipsdist = true skipsdist = true
skip_install = false skip_install = true
[testenv:releasenotes] [testenv:releasenotes]