diff --git a/tools/generate_doc_confpy.py b/tools/generate_doc_confpy.py index c7019c3..4f5e1ce 100644 --- a/tools/generate_doc_confpy.py +++ b/tools/generate_doc_confpy.py @@ -151,7 +151,16 @@ def process_repositories(args, service): logo_url="https://docs-int.otc-service.com", ) context["doc_environment"] = args.target_environment - context["doc_link"] = doc['link'] + if doc['link']: + context["doc_link"] = doc['link'] + else: + context["doc_link"] = ( + '/' + + service['service_uri'] + + '/' + + doc['type'] + + '/' + ) context["doc_title"] = doc['title'] context["doc_type"] = doc['type'] context["service_category"] = service['service_category']