1
0
forked from docs/doc-exports

Update confpy template

This commit is contained in:
Gode, Sebastian 2024-09-18 07:27:54 +00:00 committed by Hasko, Vladimir
parent 4aac5cfe88
commit 1f1e82d6c4

View File

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