summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-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.