Compare commits

..

1 Commits

Author SHA1 Message Date
28f808946a Update PDF startpage confpy variables
All checks were successful
gl/check check status: success (28f808946a627441ac0a35f65bbb2b67fd15854d)
gl/gate gate status: success (28f808946a627441ac0a35f65bbb2b67fd15854d)
2024-11-13 10:23:27 +00:00
11 changed files with 42 additions and 26 deletions

View File

@ -1,9 +0,0 @@
---
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

View File

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

View File

@ -0,0 +1,9 @@
---
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

@ -0,0 +1,9 @@
---
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,6 +1,9 @@
---
environment: public
repositories:
- environment: internal
repo: docs/enterprise-dashboard
type: gitea
- environment: public
repo: opentelekomcloud-docs/enterprise-dashboard
type: github

View File

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

View File

@ -0,0 +1,16 @@
---
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

@ -144,11 +144,11 @@ latex_elements = {
'papersize': 'a4paper',
'pointsize': '12pt',
'figure_align': 'H',
'preamble': rf'''{% raw %}
'preamble': rf'''
\newcommand{{\githash}}{{{current_commit_hash}}}
\newcommand{{\gitcommittime}}{{{current_commit_time}}}
\newcommand{{\doctitle}}{{{otcdocs_doc_title}}}
\newcommand{{\servicetitle}}{{{otcdocs_service_title}}}{% endraw %}
\newcommand{{\servicetitle}}{{{otcdocs_service_title}}}
''',
'sphinxsetup': 'hmargin={15mm,15mm}, vmargin={20mm,30mm}, marginpar=10mm'
}

View File

@ -44,7 +44,7 @@ commands =
{[testenv:json-{{ doc.type }}]commands}
{%- endfor %}
[testenv:pdf-docs]
[testenv:docs-pdf]
deps =
{[testenv:docs]deps}
{[testenv:bindeps]deps}

View File

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