Skip to content

Commit

Permalink
DOC: Use date of current commit instead of current date
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Feb 5, 2019
1 parent 4e0ae6e commit b4bce72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@
#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.
Expand Down

0 comments on commit b4bce72

Please sign in to comment.