add git commit date / sha1 to sphinx html docs

Change-Id: I5c525e372986e394c64e89e13ab7fe322f5251ba
This commit is contained in:
Jesse Andrews 2012-03-02 16:06:39 -08:00
parent 0ee6fa835b
commit 017f756626

View File

@ -245,6 +245,8 @@ html_static_path = ['_static']
# 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.