From c6a626e24321ba47ea075132deae3f948faa2e51 Mon Sep 17 00:00:00 2001 From: Jesse Andrews Date: Fri, 2 Mar 2012 16:03:13 -0800 Subject: [PATCH] add git commit date / sha1 to sphinx html docs Change-Id: I9f92a459fbf83bb42ff2fa31c2fb9c09372c8138 --- Authors | 1 + doc/source/conf.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Authors b/Authors index 8d096389df..0cb94800a3 100644 --- a/Authors +++ b/Authors @@ -20,6 +20,7 @@ Isaku Yamahata Jason Koelker Jay Pipes James E. Blair +Jesse Andrews Jinwoo 'Joseph' Suh Johannes Erdfelt Josh Durgin diff --git a/doc/source/conf.py b/doc/source/conf.py index 5b02862180..a432aac8a4 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -190,6 +190,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.