Compare commits

..

2 Commits

Author SHA1 Message Date
1a93f6d9cb Remove env
All checks were successful
gl/check check status: success (1a93f6d9cb7e159833c5590d6d746ce1ff793620)
gl/gate gate status: success (1a93f6d9cb7e159833c5590d6d746ce1ff793620)
2024-11-29 13:47:09 +00:00
968799fd60 Switch Price Calculator to Public
Some checks are pending
gl/check check status: pending (968799fd60ab673966ee6780196e38c99dc150fb)
2024-11-29 13:45:26 +00:00
6 changed files with 8 additions and 22 deletions

View File

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

View File

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

View File

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

View File

@ -44,7 +44,7 @@ commands =
{[testenv:json-{{ doc.type }}]commands} {[testenv:json-{{ doc.type }}]commands}
{%- endfor %} {%- endfor %}
[testenv:pdf-docs] [testenv:docs-pdf]
deps = deps =
{[testenv:docs]deps} {[testenv:docs]deps}
{[testenv:bindeps]deps} {[testenv:bindeps]deps}
@ -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/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 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 %} {%- for doc in docs %}
{%- if doc.pdf_enabled %} {%- if doc.pdf_name %}
{[testenv:{{ doc.type }}-pdf-docs]commands} {[testenv:{{ doc.type }}-pdf-docs]commands}
{%- endif %} {%- endif %}
{%- endfor %} {%- endfor %}
@ -107,7 +107,7 @@ commands =
cp -av doc/build/json/{{ doc.type }} {{ doc.type }}/build/json cp -av doc/build/json/{{ doc.type }} {{ doc.type }}/build/json
{%- endif %} {%- endif %}
{% if doc.pdf_enabled -%} {% if doc.pdf_name -%}
# PDF version # PDF version
[testenv:{{ doc.type }}-pdf-docs] [testenv:{{ doc.type }}-pdf-docs]
deps = {[testenv:docs]deps} 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" bash -c "for f in {{ loc }}/build/pdf/*.tex; do sed -iorig 's/\.gif//g' $f; done"
make -C {{ loc }}/build/pdf make -C {{ loc }}/build/pdf
mkdir -p doc/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 %} {% endif %}
{% endfor %} {% endfor %}

View File

@ -4,13 +4,6 @@
default-branch: main default-branch: main
templates: templates:
- helpcenter-base-jobs - helpcenter-base-jobs
vars:
sphinx_pdf_files:
{%- for doc in docs %}
{%- if doc.pdf_enabled %}
- {{ service_type }}-{{ doc.type }}.pdf
{%- endif %}
{%- endfor %}
check: check:
jobs: jobs:
- noop - noop

View File

@ -276,7 +276,6 @@ def process_repositories(args, service):
context["docs"].append(doc) context["docs"].append(doc)
context["target_environment"] = args.target_environment context["target_environment"] = args.target_environment
context["service_type"] = service['service_type']
tox_ini_content = tox_ini_template.render(**context) tox_ini_content = tox_ini_template.render(**context)
tox_ini_path = pathlib.Path(copy_to, "tox.ini") tox_ini_path = pathlib.Path(copy_to, "tox.ini")
@ -300,12 +299,6 @@ def process_repositories(args, service):
if args.update_zuul: if args.update_zuul:
"""Update zuul.yaml""" """Update zuul.yaml"""
context = dict(docs=[])
for doc in service_docs:
if doc["type"] == "dev":
doc["type"] = "dev-guide"
context["docs"].append(doc)
context["service_type"] = service['service_type']
zuul_yaml_content = zuul_yaml_template.render(**context) zuul_yaml_content = zuul_yaml_template.render(**context)
zuul_yaml_path = pathlib.Path(copy_to, "zuul.yaml") zuul_yaml_path = pathlib.Path(copy_to, "zuul.yaml")