From a882f93e8e3ec56e6f47e649794e0f71d0af30ca Mon Sep 17 00:00:00 2001 From: Sebastian Gode Date: Fri, 18 Oct 2024 09:57:43 +0000 Subject: [PATCH] Fix swiss int logo link --- tools/generate_doc_confpy.py | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/tools/generate_doc_confpy.py b/tools/generate_doc_confpy.py index 4cbe39f3..6b764f07 100644 --- a/tools/generate_doc_confpy.py +++ b/tools/generate_doc_confpy.py @@ -167,7 +167,13 @@ def process_repositories(args, service): context["git_fqdn"] = git_fqdn if target_repo.get("type") != "github": context["git_type"] = target_repo["type"] - if args.target_environment == "internal": + if args.target_environment == "internal" and target_repo["repo"].split("/")[0] == "docs-swiss": + context["html_options"] = dict( + disable_search=True, + site_name="Internal Documentation Portal", + logo_url="https://docs-swiss-int.otc-service.com", + ) + elif args.target_environment == "internal": context["html_options"] = dict( disable_search=True, site_name="Internal Documentation Portal", @@ -217,7 +223,13 @@ def process_repositories(args, service): context["git_fqdn"] = git_fqdn if target_repo.get("type") != "github": context["git_type"] = target_repo["type"] - if args.target_environment == "internal": + if args.target_environment == "internal" and target_repo["repo"].split("/")[0] == "docs-swiss": + context["html_options"] = dict( + disable_search=True, + site_name="Internal Documentation Portal", + logo_url="https://docs-swiss-int.otc-service.com", + ) + elif args.target_environment == "internal": context["html_options"] = dict( disable_search=True, site_name="Internal Documentation Portal",