From ad5d65195e92d41d9c06c0f23edd89c8dd002820 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Sat, 23 Jun 2018 22:19:33 +0200 Subject: DOC: Use date of current commit instead of current date --- doc/conf.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/conf.py b/doc/conf.py index e54db04..d68eb43 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -99,6 +99,11 @@ except Exception: #today = '' # Else, today_fmt is used as the format for a strftime call. #today_fmt = '%B %d, %Y' +try: + today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short']) + today = today.decode().strip() +except Exception: + today = '' # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. -- cgit v1.2.3