Swiss confpy changes #301
@ -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,
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user