Skip to content

Commit 804501a

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 382241f commit 804501a

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
@@ -56,8 +56,14 @@
5656

5757
# General information about the project.
5858
project = "Adafruit ServoKit Library"
59+
creation_year = "2018"
5960
current_year = str(datetime.datetime.now().year)
60-
copyright = current_year + " Kattni Rembor"
61+
year_duration = (
62+
current_year
63+
if current_year == creation_year
64+
else creation_year + " - " + current_year
65+
)
66+
copyright = year_duration + " Kattni Rembor"
6167
author = "Kattni Rembor"
6268

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

0 commit comments

Comments
 (0)