add git commit date / sha1 to sphinx html docs
Change-Id: I96124871263a489504c529bb69549d0cfa4545d5
This commit is contained in:
parent
b50f7d8509
commit
ea4999d22e
|
@ -149,6 +149,8 @@ html_static_path = ['static', 'images']
|
|||
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
||||
# using the given strftime format.
|
||||
#html_last_updated_fmt = '%b %d, %Y'
|
||||
git_cmd = "git log --pretty=format:'%ad, commit %h' --date=local -n1"
|
||||
html_last_updated_fmt = os.popen(git_cmd).read()
|
||||
|
||||
# If true, SmartyPants will be used to convert quotes and dashes to
|
||||
# typographically correct entities.
|
||||
|
|
Loading…
Reference in New Issue