Skip to content

Commit 9f23b46

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 6f672a2 commit 9f23b46

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
@@ -67,8 +67,14 @@
6767

6868
# General information about the project.
6969
project = "Adafruit turtle Library"
70+
creation_year = "2019"
7071
current_year = str(datetime.datetime.now().year)
71-
copyright = current_year + " Adafruit"
72+
year_duration = (
73+
current_year
74+
if current_year == creation_year
75+
else creation_year + " - " + current_year
76+
)
77+
copyright = year_duration + " Adafruit"
7278
author = "Adafruit"
7379

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

0 commit comments

Comments
 (0)