Compare commits

...

3 Commits

Author SHA1 Message Date
135c8a9bc8 fix pep8
All checks were successful
gl/check check status: success (135c8a9bc871391ad718266577c75c2ddc9af25c)
gl/gate gate status: success (135c8a9bc871391ad718266577c75c2ddc9af25c)
2023-11-15 13:43:51 +00:00
dd5e48a0cd Differentiate between public and internal otcdocstheme
Some checks failed
gl/check check status: failure (dd5e48a0cdcb83844607b27bc6c10836a2ab4466)
2023-11-15 13:38:02 +00:00
96ffbc1403 correct swiss portal name
Reviewed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-authored-by: tischrei <tino.schreiber@t-systems.com>
Co-committed-by: tischrei <tino.schreiber@t-systems.com>
2023-09-06 12:35:10 +00:00
2 changed files with 10 additions and 1 deletions

View File

@ -1,5 +1,11 @@
sphinx>=2.0.0,!=2.1.0 # BSD
{% if target_environment == 'public' %}
otcdocstheme<1.0.0 # Apache-2.0
{% elif target_environment == 'internal' %}
otcdocstheme # Apache-2.0
{% else %}
otcdocstheme # Apache-2.0
{% endif %}
# releasenotes
reno>=3.1.0 # Apache-2.0

View File

@ -207,7 +207,7 @@ def process_repositories(args, service):
)
else:
context["html_options"] = dict(
site_name="Open Telekom Cloud Swiss Documentation Portal",
site_name="Swiss Open Telekom Cloud Docs",
logo_url="https://docs-beta.sc.otc.t-systems.com",
)
sbv_title = (service["service_title"] + "\n"
@ -247,6 +247,8 @@ def process_repositories(args, service):
doc["type"] = "dev-guide"
context["docs"].append(doc)
context["target_environment"] = args.target_environment
tox_ini_content = tox_ini_template.render(**context)
tox_ini_path = pathlib.Path(copy_to, "tox.ini")
doc_requirements_content = doc_requirements_template.render(**context)
@ -323,6 +325,7 @@ def main():
parser.add_argument(
"--target-environment",
required=True,
choices=["internal", "public"],
help="Environment to be used as a source",
)
parser.add_argument("--service-type", help="Service to update")