Skip to content

Commit d7095f2

Browse files
committed
DOC: Use date of current commit instead of current date
1 parent 8811b15 commit d7095f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/conf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@
3333
try:
3434
release = check_output(['git', 'describe', '--tags', '--always'])
3535
release = release.decode().strip()
36+
today = check_output(['git', 'show', '-s', '--format=%ad', '--date=short'])
37+
today = today.decode().strip()
3638
except Exception:
3739
release = '<unknown>'
40+
today = '<unknown date>'
3841

3942
pygments_style = 'sphinx'
4043
html_theme = 'sphinx_rtd_theme'

0 commit comments

Comments
 (0)