Skip to content

Commit de016a1

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 259337a commit de016a1

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 AzureIoT Library"
52+
creation_year = "2019"
5253
current_year = str(datetime.datetime.now().year)
53-
copyright = current_year + " Brent Rubell, Jim Bennett, Elena Horton"
54+
year_duration = (
55+
current_year
56+
if current_year == creation_year
57+
else creation_year + " - " + current_year
58+
)
59+
copyright = year_duration + " Brent Rubell, Jim Bennett, Elena Horton"
5460
author = "Brent Rubell, Jim Bennett, Elena Horton"
5561

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

0 commit comments

Comments
 (0)