Set environment for SBV internally automatically to internal
This commit is contained in:
parent
69f89e77c4
commit
cd79542704
21
238.diff
Normal file
21
238.diff
Normal 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
|
@ -5,3 +5,4 @@
|
|||||||
|
|
||||||
.. service_card::
|
.. service_card::
|
||||||
:service_type: {{ service_type }}
|
:service_type: {{ service_type }}
|
||||||
|
:environment: {{ environment }}
|
||||||
|
@ -211,6 +211,7 @@ def process_repositories(args, service):
|
|||||||
site_name="Swiss Open Telekom Cloud Docs",
|
site_name="Swiss Open Telekom Cloud Docs",
|
||||||
logo_url="https://docs-beta.sc.otc.t-systems.com",
|
logo_url="https://docs-beta.sc.otc.t-systems.com",
|
||||||
)
|
)
|
||||||
|
context["environment"] = args.target_environment
|
||||||
sbv_title = (service["service_title"] + "\n"
|
sbv_title = (service["service_title"] + "\n"
|
||||||
+ ('=' * len(service["service_title"])))
|
+ ('=' * len(service["service_title"])))
|
||||||
context["sbv_title"] = sbv_title
|
context["sbv_title"] = sbv_title
|
||||||
|
Loading…
x
Reference in New Issue
Block a user