Compare commits

..

2 Commits

Author SHA1 Message Date
6f1361fdec Switch to PDF enabled
All checks were successful
gl/check check status: success (6f1361fdecfef078095ed5992633acef7f0c0609)
gl/gate gate status: success (6f1361fdecfef078095ed5992633acef7f0c0609)
2024-12-09 10:10:44 +00:00
18dab6c658 Zuul changes for PDF
All checks were successful
gl/check check status: success (18dab6c658c8231a3d685505e9800ccc22de3203)
2024-12-05 13:51:21 +00:00
5 changed files with 7 additions and 8 deletions

View File

@ -2,7 +2,7 @@
hc_location: api/nosql
html_location: docs/geminidb/api-ref
link: /geminidb/api-ref/
pdf_enabled: true
pdf_name: geminidb-api-ref
rst_location: api-ref/source
service_type: geminidb
title: API Reference

View File

@ -2,7 +2,7 @@
hc_location: usermanual/nosql
html_location: docs/geminidb/umn
link: /geminidb/umn/
pdf_enabled: true
pdf_name: geminidb-umn
rst_location: umn/source
service_type: geminidb
title: User Guide

View File

@ -126,9 +126,9 @@ html_copy_source = False
# -- Options for PDF output --------------------------------------------------
latex_documents = [
{%- if doc_type %}
{%- if pdf_name is defined %}
('index',
'{{ service_type }}-{{ doc_type }}.tex',
'{{ pdf_name }}.tex',
u'{{ title }}',
u'OpenTelekomCloud', 'manual'),
{% endif -%}

View File

@ -63,7 +63,7 @@ commands =
wget -O {toxinidir}/_templates/tabular.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabular.tex.jinja
wget -O {toxinidir}/_templates/tabulary.tex.jinja https://gitea.eco.tsi-dev.otc-service.com/infra/docs-templates/raw/branch/main/templates/tabulary.tex.jinja
{%- for doc in docs %}
{%- if doc.pdf_enabled %}
{%- if doc.pdf_name %}
{[testenv:{{ doc.type }}-pdf-docs]commands}
{%- endif %}
{%- endfor %}
@ -107,7 +107,7 @@ commands =
cp -av doc/build/json/{{ doc.type }} {{ doc.type }}/build/json
{%- endif %}
{% if doc.pdf_enabled -%}
{% if doc.pdf_name -%}
# PDF version
[testenv:{{ doc.type }}-pdf-docs]
deps = {[testenv:docs]deps}
@ -125,7 +125,7 @@ commands =
bash -c "for f in {{ loc }}/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
make -C {{ loc }}/build/pdf
mkdir -p doc/build/pdf
cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/pdf/
cp {{ loc }}/build/pdf/{{ doc.pdf_name }}.pdf doc/build/pdf/
{% endif %}
{% endfor %}

View File

@ -276,7 +276,6 @@ def process_repositories(args, service):
context["docs"].append(doc)
context["target_environment"] = args.target_environment
context["service_type"] = service['service_type']
tox_ini_content = tox_ini_template.render(**context)
tox_ini_path = pathlib.Path(copy_to, "tox.ini")