Compare commits

..

2 Commits

Author SHA1 Message Date
b123d18bc8 Remove diff
All checks were successful
gl/check check status: success (b123d18bc8576cdbbeb44c3c4f1ce08df402f80f)
gl/gate gate status: success (b123d18bc8576cdbbeb44c3c4f1ce08df402f80f)
2024-07-16 12:11:50 +00:00
cd79542704 Set environment for SBV internally automatically to internal 2024-07-16 12:11:31 +00:00
4 changed files with 2 additions and 8 deletions

View File

@ -16,8 +16,6 @@
import os import os
import sys import sys
from git import Repo
from datetime import datetime
extensions = [ extensions = [
'otcdocstheme', 'otcdocstheme',
@ -134,8 +132,3 @@ latex_documents = [
{% endif -%} {% endif -%}
] ]
# Get the Git commit values for timestamp on each page
repo = Repo(search_parent_directories=True)
commit = repo.head.commit
current_commit_hash = commit.hexsha
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')

View File

@ -13,4 +13,3 @@ otc-sphinx-directives>=0.1.0
sphinx-minify>=0.0.1 # Apache-2.0 sphinx-minify>=0.0.1 # Apache-2.0
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata-swiss.git#egg=otc_metadata git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata-swiss.git#egg=otc_metadata
setuptools setuptools
gitpython

View File

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

View File

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