Update tox template
All checks were successful
gl/check check status: success (d0fbe9a83828b2ced0ae751df5edcd7895738439)
All checks were successful
gl/check check status: success (d0fbe9a83828b2ced0ae751df5edcd7895738439)
This commit is contained in:
@ -23,6 +23,10 @@ commands = {posargs}
|
||||
|
||||
[testenv:docs]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
mkdir
|
||||
cp
|
||||
find
|
||||
commands =
|
||||
{%- for doc in docs %}
|
||||
{[testenv:{{ doc.type }}]commands}
|
||||
@ -32,7 +36,11 @@ commands =
|
||||
[testenv:docs-pdf]
|
||||
deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
rm
|
||||
mkdir
|
||||
make
|
||||
bash
|
||||
cp
|
||||
commands =
|
||||
mkdir -p doc/build/pdf
|
||||
{%- for doc in docs %}
|
||||
@ -49,8 +57,10 @@ deps = -r{toxinidir}/doc/requirements.txt
|
||||
allowlist_externals =
|
||||
cp
|
||||
mkdir
|
||||
find
|
||||
commands =
|
||||
sphinx-build -W --keep-going -b html {{ loc }}/source doc/build/html/{{ doc.type }}
|
||||
find doc/build/html -type d -name '_sources' -exec rm -rf {:} ;
|
||||
{%- if doc.type == 'api-ref' %}
|
||||
mkdir -p api-ref/build/html
|
||||
cp -av doc/build/html/api-ref api-ref/build/html
|
||||
@ -72,7 +82,7 @@ allowlist_externals =
|
||||
commands =
|
||||
sphinx-build -W --keep-going -b json {{ loc }}/source doc/build/json/{{ doc.type }}
|
||||
# Drop data useless for the search
|
||||
find doc/build/json -type d -and ( -name '_images' -or -name '_static' -or -name '_sources' ) -exec rm {:} ;
|
||||
find doc/build/json -type d -and ( -name '_images' -or -name '_static' -or -name '_sources' ) -exec rm -rf {:} ;
|
||||
{%- if doc.type == 'api-ref' %}
|
||||
mkdir -p api-ref/build/json
|
||||
cp -av doc/build/json/api-ref api-ref/build/json
|
||||
|
Reference in New Issue
Block a user