diff --git a/otc_metadata/templates/tox.ini.j2 b/otc_metadata/templates/tox.ini.j2 index e149ebde..3b8bbc1a 100644 --- a/otc_metadata/templates/tox.ini.j2 +++ b/otc_metadata/templates/tox.ini.j2 @@ -44,6 +44,7 @@ commands = {[testenv:json-{{ doc.type }}]commands} {%- endfor %} +{% if docs|length > 0 %} [testenv:pdf-docs] deps = {[testenv:docs]deps} @@ -67,6 +68,7 @@ commands = {[testenv:{{ doc.type }}-pdf-docs]commands} {%- endif %} {%- endfor %} +{% endif %} {% for doc in docs -%} {% set loc = doc.rst_location | replace('/source', '') %}