Set environment for SBV internally automatically to internal

This commit is contained in:
Gode, Sebastian 2024-07-16 12:11:31 +00:00
parent 69f89e77c4
commit cd79542704
3 changed files with 23 additions and 0 deletions

21
238.diff Normal file
View File

@ -0,0 +1,21 @@
diff --git a/otc_metadata/templates/index_sbv.rst.j2 b/otc_metadata/templates/index_sbv.rst.j2
index 1ef5b688..e30cc142 100644
--- a/otc_metadata/templates/index_sbv.rst.j2
+++ b/otc_metadata/templates/index_sbv.rst.j2
@@ -5,3 +5,4 @@
.. service_card::
:service_type: {{ service_type }}
+ :environment: {{ environment }}
diff --git a/tools/generate_doc_confpy.py b/tools/generate_doc_confpy.py
index 174148ac..ea4562e6 100644
--- a/tools/generate_doc_confpy.py
+++ b/tools/generate_doc_confpy.py
@@ -201,6 +201,7 @@ def process_repositories(args, service):
site_name="Internal Documentation Portal",
logo_url="https://docs-int.otc-service.com",
)
+ context["environment"] = args.target_environment
sbv_title = (service["service_title"] + "\n"
+ ('=' * len(service["service_title"])))
context["sbv_title"] = sbv_title

View File

@ -5,3 +5,4 @@
.. service_card::
:service_type: {{ service_type }}
:environment: {{ environment }}

View File

@ -211,6 +211,7 @@ def process_repositories(args, service):
site_name="Swiss Open Telekom Cloud Docs",
logo_url="https://docs-beta.sc.otc.t-systems.com",
)
context["environment"] = args.target_environment
sbv_title = (service["service_title"] + "\n"
+ ('=' * len(service["service_title"])))
context["sbv_title"] = sbv_title