Added Commit Hash and Time to confpy
Some checks failed
gl/check check status: failure (6068d7cea1a79a0cdad0b19e2e6b8fc16c2637bd)
Some checks failed
gl/check check status: failure (6068d7cea1a79a0cdad0b19e2e6b8fc16c2637bd)
This commit is contained in:
parent
1985e1f40d
commit
6068d7cea1
@ -134,8 +134,8 @@ latex_documents = [
|
||||
{% endif -%}
|
||||
]
|
||||
|
||||
# Get the Git commit values
|
||||
# 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[:7]
|
||||
current_commit_hash = commit.hexsha
|
||||
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
||||
|
Loading…
x
Reference in New Issue
Block a user