From d057c0b4851116332688eadb9700b24e5f5e66e9 Mon Sep 17 00:00:00 2001 From: "Gode, Sebastian" Date: Thu, 19 Sep 2024 07:19:21 +0000 Subject: [PATCH] Update confpy template Reviewed-by: Hasko, Vladimir Co-authored-by: Gode, Sebastian Co-committed-by: Gode, Sebastian --- templates/conf.py | 7 +++++++ zuul.yaml | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/templates/conf.py b/templates/conf.py index c578a1ca..d7d040e6 100644 --- a/templates/conf.py +++ b/templates/conf.py @@ -16,6 +16,8 @@ import os import sys +from git import Repo +from datetime import datetime extensions = [ 'otcdocstheme', @@ -118,3 +120,8 @@ latex_documents = [ {% 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') diff --git a/zuul.yaml b/zuul.yaml index ea5088fa..a0a5be30 100644 --- a/zuul.yaml +++ b/zuul.yaml @@ -109,8 +109,6 @@ - docs/ddm - docs/dds - docs/gaussdb_mysql - - docs/gaussdb_nosql - - docs/gaussdb_nosql - docs/geminidb - docs/opengauss - docs/drs