Added search index params on confpy #92

Merged
zuul merged 4 commits from search_index_params into main 2023-05-30 08:58:44 +00:00
2 changed files with 26 additions and 0 deletions
Showing only changes of commit 6994dd37f7 - Show all commits

View File

@ -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']