Compare commits

...

3 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
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
5 changed files with 15 additions and 3 deletions

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,5 +1,5 @@
---
environment: hidden
environment: public
repositories:
- environment: internal
repo: docs/price-calculator

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}

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

@ -299,6 +299,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")