Skip to content

Commit b4bce72

Browse files
committed
DOC: Use date of current commit instead of current date
1 parent 4e0ae6e commit b4bce72

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
@@ -115,6 +115,11 @@
115115
#today = ''
116116
# Else, today_fmt is used as the format for a strftime call.
117117
#today_fmt = '%B %d, %Y'
118+
try:
119+
today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short'])
120+
today = today.decode().strip()
121+
except Exception:
122+
today = '<unknown date>'
118123

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

0 commit comments

Comments
 (0)