Skip to content

Commit 2c0ed6f

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 70540ca commit 2c0ed6f

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
@@ -70,8 +70,14 @@
7070

7171
# General information about the project.
7272
project = "Adafruit PyPortal Library"
73+
creation_year = "2019"
7374
current_year = str(datetime.datetime.now().year)
74-
copyright = current_year + " Limor Fried"
75+
year_duration = (
76+
current_year
77+
if current_year == creation_year
78+
else creation_year + " - " + current_year
79+
)
80+
copyright = year_duration + " Limor Fried"
7581
author = "Limor Fried"
7682

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

0 commit comments

Comments
 (0)