forked from docs/doc-exports
Compare commits
2 Commits
main
...
update-con
Author | SHA1 | Date | |
---|---|---|---|
6285e994c5 | |||
1f1e82d6c4 |
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from git import Repo
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'otcdocstheme',
|
'otcdocstheme',
|
||||||
@ -118,3 +120,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')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user