summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Geier <Matthias.Geier@gmail.com>2018-06-23 22:19:33 +0200
committerMatthias Geier <Matthias.Geier@gmail.com>2018-07-27 17:06:03 +0200
commitad5d65195e92d41d9c06c0f23edd89c8dd002820 (patch)
treeaa7d2e61a3ba7bb3a2f6b133d1bdf4614a41b62d
parent0195bba64af1976d02d2fd7376818c03391598e4 (diff)
DOC: Use date of current commit instead of current date
-rw-r--r--doc/conf.py5
1 files changed, 5 insertions, 0 deletions
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 = '<unknown date>'
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.