diff --git a/tox.ini b/tox.ini index 793e2b4..d497990 100644 --- a/tox.ini +++ b/tox.ini @@ -34,6 +34,8 @@ commands = {[testenv:json-api-ref]commands} {[testenv:operation-guide]commands} {[testenv:json-operation-guide]commands} + {[testenv:operation-guide-lts]commands} + {[testenv:json-operation-guide-lts]commands} {[testenv:umn]commands} {[testenv:json-umn]commands} @@ -49,6 +51,7 @@ commands = mkdir -p doc/build/pdf {[testenv:api-ref-pdf-docs]commands} {[testenv:operation-guide-pdf-docs]commands} + {[testenv:operation-guide-lts-pdf-docs]commands} {[testenv:umn-pdf-docs]commands} @@ -138,6 +141,47 @@ commands = cp doc/component-operation-guide/build/pdf/mrs-component-operation-guide.pdf doc/build/pdf/ +# HTML version +[testenv:operation-guide-lts] +deps = -r{toxinidir}/doc/requirements.txt +allowlist_externals = + cp + mkdir +commands = + sphinx-build -W --keep-going -b html doc/component-operation-guide-lts/source doc/build/html/operation-guide-lts + +# Json version (for search) +[testenv:json-operation-guide-lts] +deps = -r{toxinidir}/doc/requirements.txt +allowlist_externals = + cp + mkdir + sh +commands = + sphinx-build -W --keep-going -b json doc/component-operation-guide-lts/source doc/build/json/operation-guide-lts + # Drop data useless for the search - wrap it also with sh/xargs due to bugs + # in tox + sh -c "find doc/build/json -type d -and '(' -name '_images' -or -name '_static' -or -name '_sources' ')' -print0 | xargs -0 rm -rf" + +# PDF version +[testenv:operation-guide-lts-pdf-docs] +deps = -r{toxinidir}/doc/requirements.txt +allowlist_externals = + rm + mkdir + make + bash + cp +commands = + rm -rf doc/component-operation-guide-lts/build/pdf + sphinx-build -W --keep-going -b latex doc/component-operation-guide-lts/source doc/component-operation-guide-lts/build/pdf/ + bash -c "for f in doc/component-operation-guide-lts/build/pdf/*.gif; do convert $f $\{f/%gif/png\}; done || true" + bash -c "for f in doc/component-operation-guide-lts/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done" + make -C doc/component-operation-guide-lts/build/pdf + mkdir -p doc/build/pdf + cp doc/component-operation-guide-lts/build/pdf/mrs-component-operation-guide-lts.pdf doc/build/pdf/ + + # HTML version [testenv:umn] deps = -r{toxinidir}/doc/requirements.txt