Skip to content

Commit a17d9a7

Browse files
committed
DOC: Use date of current commit instead of current date
1 parent e3d1fce commit a17d9a7

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
@@ -93,6 +93,11 @@
9393
#today = ''
9494
# Else, today_fmt is used as the format for a strftime call.
9595
#today_fmt = '%B %d, %Y'
96+
try:
97+
today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short'])
98+
today = today.decode().strip()
99+
except Exception:
100+
today = '<unknown date>'
96101

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

0 commit comments

Comments
 (0)