Compare commits

..

2 Commits

Author SHA1 Message Date
af344cd4d8 longer commit string
All checks were successful
gl/check check status: success (af344cd4d8105ed619d15366e8b8874982bd3195)
gl/gate gate status: success (af344cd4d8105ed619d15366e8b8874982bd3195)
2024-09-06 07:57:35 +00:00
7ec0772602 Added Commit Hash and Time to confpy
Reviewed-by: tischrei <tino.schreiber@t-systems.com>
Co-authored-by: Gode, Sebastian <sebastian.gode@t-systems.com>
Co-committed-by: Gode, Sebastian <sebastian.gode@t-systems.com>
2024-09-06 07:35:42 +00:00
3 changed files with 10 additions and 2 deletions

View File

@ -1,5 +1,5 @@
--- ---
hc_location: api/aos hc_location: api/rfs
environment: internal environment: internal
html_location: docs/rfs/api-ref html_location: docs/rfs/api-ref
link: /resource-formation-service/api-ref/ link: /resource-formation-service/api-ref/

View File

@ -16,6 +16,8 @@
import os import os
import sys import sys
from git import Repo
from datetime import datetime
extensions = [ extensions = [
'otcdocstheme', 'otcdocstheme',
@ -131,3 +133,8 @@ latex_documents = [
{% endif -%} {% endif -%}
] ]
# Get the Git commit values for last updated 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

@ -12,4 +12,5 @@ reno>=3.1.0 # Apache-2.0
otc-sphinx-directives>=0.1.0 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.git#egg=otc_metadata git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata
setuptools setuptools
gitpython