From 1063bffd551c5354cfab3384864677a3f830af97 Mon Sep 17 00:00:00 2001 From: Sebastian Gode Date: Fri, 7 Feb 2025 10:14:06 +0000 Subject: [PATCH] Auto copy PDFs to HTML folder for Zuul to upload Reviewed-by: tischrei Reviewed-by: Hasko, Vladimir Co-authored-by: Sebastian Gode Co-committed-by: Sebastian Gode --- otc_metadata/templates/tox.ini.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/otc_metadata/templates/tox.ini.j2 b/otc_metadata/templates/tox.ini.j2 index 8c4c0fc6..edfd5f11 100644 --- a/otc_metadata/templates/tox.ini.j2 +++ b/otc_metadata/templates/tox.ini.j2 @@ -58,6 +58,7 @@ allowlist_externals = cp commands = mkdir -p doc/build/pdf + mkdir -p doc/build/html {[testenv:bindeps]commands} mkdir -p {toxinidir}/_templates wget -O {toxinidir}/_templates/longtable.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/longtable.tex.jinja @@ -127,6 +128,7 @@ commands = make -C {{ loc }}/build/pdf LATEXMKOPTS="-interaction=nonstopmode" mkdir -p doc/build/pdf cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/pdf/ + cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/html/ {% endfor %} [testenv:bindeps]