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
34 changed files with 35 additions and 54 deletions

View File

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

View File

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

View File

@ -2,7 +2,7 @@
hc_location: api/aom hc_location: api/aom
html_location: docs/aom/api-ref html_location: docs/aom/api-ref
link: /application-operations-management/api-ref/ link: /application-operations-management/api-ref/
pdf_enabled: true pdf_name: aom-api-ref
rst_location: api-ref/source rst_location: api-ref/source
service_type: aom service_type: aom
title: API Reference title: API Reference

View File

@ -2,7 +2,7 @@
hc_location: usermanual/aom hc_location: usermanual/aom
html_location: docs/aom/umn html_location: docs/aom/umn
link: /application-operations-management/umn/ link: /application-operations-management/umn/
pdf_enabled: true pdf_name: aom-umn
rst_location: umn/source rst_location: umn/source
service_type: aom service_type: aom
title: User Guide title: User Guide

View File

@ -3,7 +3,7 @@ environment: internal
hc_location: api/aom2 hc_location: api/aom2
html_location: docs/aom2/api-ref html_location: docs/aom2/api-ref
link: /application-operations-management-2/api-ref/ link: /application-operations-management-2/api-ref/
pdf_enabled: true pdf_name: aom2-api-ref
rst_location: api-ref/source rst_location: api-ref/source
service_type: aom2 service_type: aom2
title: API Reference title: API Reference

View File

@ -3,7 +3,7 @@ environment: internal
hc_location: usermanual/aom2 hc_location: usermanual/aom2
html_location: docs/aom2/umn html_location: docs/aom2/umn
link: /application-operations-management-2/umn/ link: /application-operations-management-2/umn/
pdf_enabled: true pdf_name: aom2-umn
rst_location: umn/source rst_location: umn/source
service_type: aom2 service_type: aom2
title: User Guide title: User Guide

View File

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

View File

@ -3,7 +3,7 @@ environment: hidden
hc_location: devg/apig hc_location: devg/apig
html_location: docs/apig/dev html_location: docs/apig/dev
link: /api-gateway/dev-guide/ link: /api-gateway/dev-guide/
pdf_enabled: true pdf_name: apig-dev-guide
rst_location: dev_guide/source rst_location: dev_guide/source
service_type: apig service_type: apig
title: Developer Guide title: Developer Guide

View File

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

View File

@ -3,7 +3,7 @@ environment: internal
hc_location: api-usage/guidelines hc_location: api-usage/guidelines
html_location: docs/apiu/guidelines html_location: docs/apiu/guidelines
link: /api-usage/guidelines/ link: /api-usage/guidelines/
pdf_enabled: true pdf_name: apiu-guidelines
rst_location: doc/guidelines/source rst_location: doc/guidelines/source
service_type: apiu service_type: apiu
title: API Usage Guidelines title: API Usage Guidelines

View File

@ -3,7 +3,7 @@ environment: internal
hc_location: api/apm hc_location: api/apm
html_location: docs/apm/api-ref html_location: docs/apm/api-ref
link: /application-performance-management/api-ref/ link: /application-performance-management/api-ref/
pdf_enabled: true pdf_name: apm-api-ref
rst_location: api-ref/source rst_location: api-ref/source
service_type: apm service_type: apm
title: API Reference title: API Reference

View File

@ -3,7 +3,7 @@ environment: public
hc_location: usermanual/apm hc_location: usermanual/apm
html_location: docs/apm/umn html_location: docs/apm/umn
link: /application-performance-management/umn/ link: /application-performance-management/umn/
pdf_enabled: true pdf_name: apm-umn
rst_location: umn/source rst_location: umn/source
service_type: apm service_type: apm
title: User Guide title: User Guide

View File

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

View File

@ -2,7 +2,7 @@
hc_location: devg/as hc_location: devg/as
html_location: docs/as/dev html_location: docs/as/dev
link: /auto-scaling/dev-guide/ link: /auto-scaling/dev-guide/
pdf_enabled: true pdf_name: as-dev-guide
rst_location: dev_guide/source rst_location: dev_guide/source
service_type: as service_type: as
title: Developer Guide title: Developer Guide

View File

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

View File

@ -3,7 +3,7 @@ environment: internal
hc_location: api/asm hc_location: api/asm
html_location: docs/asm/api-ref html_location: docs/asm/api-ref
link: /application-service-mesh/api-ref/ link: /application-service-mesh/api-ref/
pdf_enabled: true pdf_name: asm-api-ref
rst_location: api-ref/source rst_location: api-ref/source
service_type: asm service_type: asm
title: API Reference title: API Reference

View File

@ -3,7 +3,7 @@ hc_location: bestpractice/asm
environment: internal environment: internal
html_location: docs/asm/best-practice html_location: docs/asm/best-practice
link: /application-service-mesh/best-practice/ link: /application-service-mesh/best-practice/
pdf_enabled: true pdf_name: asm-best-practice
rst_location: doc/best-practice/source rst_location: doc/best-practice/source
service_type: asm service_type: asm
title: Best Practice title: Best Practice

View File

@ -3,7 +3,7 @@ environment: public
hc_location: usermanual/asm hc_location: usermanual/asm
html_location: docs/asm/umn html_location: docs/asm/umn
link: /application-service-mesh/umn/ link: /application-service-mesh/umn/
pdf_enabled: true pdf_name: asm-umn
rst_location: umn/source rst_location: umn/source
service_type: asm service_type: asm
title: User Guide title: User Guide

View File

@ -1,7 +1,6 @@
--- ---
link: /business-dashboard/umn/ link: /business-dashboard/umn/
rst_location: umn/source rst_location: umn/source
pdf_enabled: false
service_type: bd service_type: bd
title: User Guide title: User Guide
type: umn type: umn

View File

@ -2,7 +2,7 @@
hc_location: api/bms hc_location: api/bms
html_location: docs/bms/api-ref html_location: docs/bms/api-ref
link: /bare-metal-server/api-ref/ link: /bare-metal-server/api-ref/
pdf_enabled: true pdf_name: bms-api-ref
rst_location: api-ref/source rst_location: api-ref/source
service_type: bms service_type: bms
title: API Reference title: API Reference

View File

@ -2,7 +2,7 @@
hc_location: devg/bms hc_location: devg/bms
html_location: docs/bms/dev html_location: docs/bms/dev
link: /bare-metal-server/dev-guide/ link: /bare-metal-server/dev-guide/
pdf_enabled: true pdf_name: bms-dev-guide
rst_location: dev_guide/source rst_location: dev_guide/source
service_type: bms service_type: bms
title: Developer Guide title: Developer Guide

View File

@ -2,7 +2,7 @@
hc_location: bpicg/bms hc_location: bpicg/bms
html_location: docs/bms/image-creation-guide html_location: docs/bms/image-creation-guide
link: /bare-metal-server/image-creation-guide/ link: /bare-metal-server/image-creation-guide/
pdf_enabled: true pdf_name: bms-image-creation-guide
rst_location: doc/image-creation-guide/source rst_location: doc/image-creation-guide/source
service_type: bms service_type: bms
title: Private Image Creation Guide title: Private Image Creation Guide

View File

@ -2,7 +2,7 @@
hc_location: usermanual/bms hc_location: usermanual/bms
html_location: docs/bms/umn html_location: docs/bms/umn
link: /bare-metal-server/umn/ link: /bare-metal-server/umn/
pdf_enabled: true pdf_name: bms-umn
rst_location: umn/source rst_location: umn/source
service_type: bms service_type: bms
title: User Guide title: User Guide

View File

@ -2,7 +2,7 @@
hc_location: api/cbr hc_location: api/cbr
html_location: docs/cbr/api-ref html_location: docs/cbr/api-ref
link: /cloud-backup-recovery/api-ref/ link: /cloud-backup-recovery/api-ref/
pdf_enabled: true pdf_name: cbr-api-ref
rst_location: api-ref/source rst_location: api-ref/source
service_type: cbr service_type: cbr
title: API Reference title: API Reference

View File

@ -3,7 +3,7 @@ hc_location: bestpractice/cbr
environment: internal environment: internal
html_location: docs/cbr/best-practice html_location: docs/cbr/best-practice
link: /cloud-backup-recovery/best-practice/ link: /cloud-backup-recovery/best-practice/
pdf_enabled: true pdf_name: cbr-best-practice
rst_location: doc/best-practice/source rst_location: doc/best-practice/source
service_type: cbr service_type: cbr
title: Best Practice title: Best Practice

View File

@ -2,7 +2,7 @@
hc_location: usermanual/cbr hc_location: usermanual/cbr
html_location: docs/cbr/umn html_location: docs/cbr/umn
link: /cloud-backup-recovery/umn/ link: /cloud-backup-recovery/umn/
pdf_enabled: true pdf_name: cbr-umn
rst_location: umn/source rst_location: umn/source
service_type: cbr service_type: cbr
title: User Guide title: User Guide

View File

@ -1,6 +1,6 @@
--- ---
link: /cloud-create/api-ref/ link: /cloud-create/api-ref/
pdf_enabled: true pdf_name: cc-api-ref
rst_location: api-ref/source rst_location: api-ref/source
service_type: cc service_type: cc
title: API Reference title: API Reference

View File

@ -1,7 +1,7 @@
--- ---
html_location: docs/cc/umn html_location: docs/cc/umn
link: /cloud-create/umn/ link: /cloud-create/umn/
pdf_enabled: true pdf_name: cc-umn
rst_location: umn/source rst_location: umn/source
service_type: cc service_type: cc
title: User Guide title: User Guide

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,13 +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',
{%- if doc_type == 'dev' %} '{{ pdf_name }}.tex',
'{{ service_type }}-dev-guide.tex',
{%- else %}
'{{ service_type }}-{{ doc_type }}.tex',
{% endif -%}
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")