Skip to content

Commit ad5d651

Browse files
committed
DOC: Use date of current commit instead of current date
1 parent 0195bba commit ad5d651

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
#today = ''
100100
# Else, today_fmt is used as the format for a strftime call.
101101
#today_fmt = '%B %d, %Y'
102+
try:
103+
today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short'])
104+
today = today.decode().strip()
105+
except Exception:
106+
today = '<unknown date>'
102107

103108
# List of patterns, relative to source directory, that match files and
104109
# directories to ignore when looking for source files.

0 commit comments

Comments
 (0)