Compare commits

..

6 Commits

Author SHA1 Message Date
75d5209789 Fix issue with latex_documents
All checks were successful
gl/check check status: success (75d5209789e24c6f1847e4ce64dbc9c3ff8f94a0)
gl/gate gate status: success (75d5209789e24c6f1847e4ce64dbc9c3ff8f94a0)
2024-12-09 12:35:32 +00:00
016b67221c Zuul changes for PDF
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2024-12-09 10:51:06 +00:00
a7ee45b3d8 enable pdf for gemini db documents
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2024-12-09 10:13:35 +00:00
c0a83341f4 Switch Price Calculator to Public
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Sebastian Gode <sebastian.gode@telekom.de>
Co-committed-by: Sebastian Gode <sebastian.gode@telekom.de>
2024-11-29 16:45:58 +00:00
f9076808e2 removing RMS service from OTC
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-committed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
2024-11-25 19:32:19 +00:00
e3ce9a281f add api-ref for dbss
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2024-11-21 12:14:19 +00:00
11 changed files with 23 additions and 44 deletions

View File

@ -2,7 +2,7 @@
hc_location: api/nosql
html_location: docs/geminidb/api-ref
link: /geminidb/api-ref/
pdf_name: geminidb-api-ref
pdf_enabled: true
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_name: geminidb-umn
pdf_enabled: true
rst_location: umn/source
service_type: geminidb
title: User Guide

View File

@ -1,5 +1,4 @@
---
environment: internal
link: /price-calculator/api-ref/
pdf_name: pc-api-ref
rst_location: api-ref/source

View File

@ -1,9 +0,0 @@
---
hc_location: api/rms
html_location: docs/rms/api-ref
link: /resource-management-service/api-ref/
pdf_name: rms-api-ref
rst_location: api-ref/source
service_type: rms
title: API Reference
type: api-ref

View File

@ -1,9 +0,0 @@
---
hc_location: usermanual/rms
html_location: docs/rms/umn
link: /resource-management-service/umn/
pdf_name: rms-umn
rst_location: umn/source
service_type: rms
title: User Guide
type: umn

View File

@ -1,5 +1,5 @@
---
environment: hidden
environment: public
repositories:
- environment: internal
repo: docs/price-calculator

View File

@ -1,16 +0,0 @@
---
environment: public
repositories:
- environment: internal
repo: docs/resource-management-service
type: gitea
- environment: public
repo: opentelekomcloud-docs/resource-management-service
type: github
service_category: md
service_title: Resource Management Service
service_type: rms
service_uri: resource-management-service
teams:
- name: docs-orchestration-rw
permission: write

View File

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

View File

@ -44,7 +44,7 @@ commands =
{[testenv:json-{{ doc.type }}]commands}
{%- endfor %}
[testenv:docs-pdf]
[testenv:pdf-docs]
deps =
{[testenv:docs]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/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_name %}
{%- if doc.pdf_enabled %}
{[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_name -%}
{% if doc.pdf_enabled -%}
# 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/{{ doc.pdf_name }}.pdf doc/build/pdf/
cp {{ loc }}/build/pdf/{{ service_type }}-{{ doc.type }}.pdf doc/build/pdf/
{% endif %}
{% endfor %}

View File

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

View File

@ -276,6 +276,7 @@ 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")
@ -299,6 +300,12 @@ def process_repositories(args, service):
if args.update_zuul:
"""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_path = pathlib.Path(copy_to, "zuul.yaml")