Swiss confpy changes

This commit is contained in:
Gode, Sebastian 2025-02-25 10:46:58 +00:00
parent dbc6d6d400
commit b730b0668c

View File

@ -167,7 +167,16 @@ def process_repositories(args, service):
context["git_fqdn"] = git_fqdn context["git_fqdn"] = git_fqdn
if target_repo.get("type") != "github": if target_repo.get("type") != "github":
context["git_type"] = target_repo["type"] context["git_type"] = target_repo["type"]
if (args.target_environment == "internal" if (args.target_environment == "public"
and target_repo["repo"].split("/")[0] == "opentelekomcloud-docs-swiss"):
context["html_options"] = dict(
logo_url="https://docs.sc.otc.t-systems.com",
)
elif (args.target_environment == "public"):
context["html_options"] = dict(
logo_url="https://docs.otc.t-systems.com",
)
elif (args.target_environment == "internal"
and target_repo["repo"].split("/")[0] == "docs-swiss"): and target_repo["repo"].split("/")[0] == "docs-swiss"):
context["html_options"] = dict( context["html_options"] = dict(
disable_search=True, disable_search=True,
@ -224,7 +233,16 @@ def process_repositories(args, service):
context["git_fqdn"] = git_fqdn context["git_fqdn"] = git_fqdn
if target_repo.get("type") != "github": if target_repo.get("type") != "github":
context["git_type"] = target_repo["type"] context["git_type"] = target_repo["type"]
if (args.target_environment == "internal" if (args.target_environment == "public"
and target_repo["repo"].split("/")[0] == "opentelekomcloud-docs-swiss"):
context["html_options"] = dict(
logo_url="https://docs.sc.otc.t-systems.com",
)
elif (args.target_environment == "public"):
context["html_options"] = dict(
logo_url="https://docs.otc.t-systems.com",
)
elif (args.target_environment == "internal"
and target_repo["repo"].split("/")[0] == "docs-swiss"): and target_repo["repo"].split("/")[0] == "docs-swiss"):
context["html_options"] = dict( context["html_options"] = dict(
disable_search=True, disable_search=True,