forked from infra/otc-metadata
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
6f1361fdec | |||
18dab6c658 |
@ -44,7 +44,7 @@ commands =
|
|||||||
{[testenv:json-{{ doc.type }}]commands}
|
{[testenv:json-{{ doc.type }}]commands}
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
[testenv:docs-pdf]
|
[testenv:pdf-docs]
|
||||||
deps =
|
deps =
|
||||||
{[testenv:docs]deps}
|
{[testenv:docs]deps}
|
||||||
{[testenv:bindeps]deps}
|
{[testenv:bindeps]deps}
|
||||||
|
@ -4,6 +4,13 @@
|
|||||||
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
|
||||||
|
@ -299,6 +299,12 @@ 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")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user