Skip to content

Commit e9331b7

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,14 @@
5959

6060
# General information about the project.
6161
project = "Adafruit PyBadger Library"
62+
creation_year = "2019"
6263
current_year = str(datetime.datetime.now().year)
63-
copyright = current_year + " Kattni Rembor"
64+
year_duration = (
65+
current_year
66+
if current_year == creation_year
67+
else creation_year + " - " + current_year
68+
)
69+
copyright = year_duration + " Kattni Rembor"
6470
author = "Kattni Rembor"
6571

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

0 commit comments

Comments
 (0)