This commit is contained in:
Gode, Sebastian 2024-10-30 10:18:46 +00:00
parent a882f93e8e
commit 21cc170225

View File

@ -167,7 +167,8 @@ 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" and target_repo["repo"].split("/")[0] == "docs-swiss": if (args.target_environment == "internal"
and target_repo["repo"].split("/")[0] == "docs-swiss"):
context["html_options"] = dict( context["html_options"] = dict(
disable_search=True, disable_search=True,
site_name="Internal Documentation Portal", site_name="Internal Documentation Portal",
@ -223,7 +224,8 @@ 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" and target_repo["repo"].split("/")[0] == "docs-swiss": if (args.target_environment == "internal"
and target_repo["repo"].split("/")[0] == "docs-swiss"):
context["html_options"] = dict( context["html_options"] = dict(
disable_search=True, disable_search=True,
site_name="Internal Documentation Portal", site_name="Internal Documentation Portal",