Compare commits
6 Commits
archive-ed
...
zuul-pdf
Author | SHA1 | Date | |
---|---|---|---|
6f1361fdec | |||
18dab6c658 | |||
c0a83341f4 | |||
f9076808e2 | |||
e3ce9a281f | |||
2884d277b5 |
9
otc_metadata/data/documents/dbss-api-ref.yaml
Normal file
9
otc_metadata/data/documents/dbss-api-ref.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
hc_location: api/dbss
|
||||
html_location: docs/dbss/api-ref
|
||||
link: /database-security-service/api-ref/
|
||||
pdf_name: dbss-api-ref
|
||||
rst_location: api-ref/source
|
||||
service_type: dbss
|
||||
title: API Reference
|
||||
type: api-ref
|
@ -1,5 +1,4 @@
|
||||
---
|
||||
environment: internal
|
||||
link: /price-calculator/api-ref/
|
||||
pdf_name: pc-api-ref
|
||||
rst_location: api-ref/source
|
||||
|
@ -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
|
@ -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
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
environment: hidden
|
||||
environment: public
|
||||
repositories:
|
||||
- environment: internal
|
||||
repo: docs/price-calculator
|
||||
|
@ -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
|
@ -44,7 +44,7 @@ commands =
|
||||
{[testenv:json-{{ doc.type }}]commands}
|
||||
{%- endfor %}
|
||||
|
||||
[testenv:docs-pdf]
|
||||
[testenv:pdf-docs]
|
||||
deps =
|
||||
{[testenv:docs]deps}
|
||||
{[testenv:bindeps]deps}
|
||||
|
@ -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
|
||||
|
@ -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")
|
||||
|
Reference in New Issue
Block a user