Skip to content

Commit ce1ba1b

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

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
@@ -49,8 +49,14 @@
4949

5050
# General information about the project.
5151
project = "Adafruit Display_Notification Library"
52+
creation_year = "2019"
5253
current_year = str(datetime.datetime.now().year)
53-
copyright = current_year + " Scott Shawcroft"
54+
year_duration = (
55+
current_year
56+
if current_year == creation_year
57+
else creation_year + " - " + current_year
58+
)
59+
copyright = year_duration + " Scott Shawcroft"
5460
author = "Scott Shawcroft"
5561

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

0 commit comments

Comments
 (0)