Skip to content

Commit 1f8f3a6

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent d851358 commit 1f8f3a6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@
4848

4949
# General information about the project.
5050
project = "Adafruit 74HC595 Library"
51+
creation_year = "2018"
5152
current_year = str(datetime.datetime.now().year)
52-
copyright = current_year + " Kattni Rembor"
53+
year_duration = (
54+
current_year
55+
if current_year == creation_year
56+
else creation_year + " - " + current_year
57+
)
58+
copyright = year_duration + " Kattni Rembor"
5359
author = "Kattni Rembor"
5460

5561
# The version info for the project you're documenting, acts as replacement for

0 commit comments

Comments
 (0)