File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,37 @@ skip_install = true
9292allowlist_externals =
9393 git
9494
95+
96+ [testenv:preview-docs]
97+ description = preview the docs
98+ deps =
99+ sphinx-autobuild
100+ {[testenv:build-docs]deps}
101+ commands_pre =
102+ commands =
103+ # Retrieve possibly missing commits:
104+ -git fetch --unshallow
105+ -git fetch --tags
106+
107+ # Build the html docs with sphinx-autobuild:
108+ {envpython} -m sphinx_autobuild \
109+ -j auto \
110+ -b html \
111+ -n \
112+ -W \
113+ -d " {temp_dir}/.doctrees" \
114+ . \
115+ --watch ../README.rst \
116+ --watch ../CHANGELOG.md \
117+ " {envdir}/docs_out"
118+
119+ changedir = {[testenv:build-docs]changedir}
120+ isolated_build = {[testenv:build-docs]isolated_build}
121+ passenv = {[testenv:build-docs]passenv}
122+ skip_install = {[testenv:build-docs]skip_install}
123+ allowlist_externals = {[testenv:build-docs]allowlist_externals}
124+
125+
95126[testenv:linkcheck-docs]
96127description = check links in the documentation
97128deps =
You can’t perform that action at this time.
0 commit comments