Skip to content

Commit 2fa9b0a

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 1d9efc3 commit 2fa9b0a

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
@@ -42,8 +42,14 @@
4242

4343
# General information about the project.
4444
project = "Adafruit GC_IOT_CORE Library"
45+
creation_year = "2019"
4546
current_year = str(datetime.datetime.now().year)
46-
copyright = current_year + " Brent Rubell"
47+
year_duration = (
48+
current_year
49+
if current_year == creation_year
50+
else creation_year + " - " + current_year
51+
)
52+
copyright = year_duration + " Brent Rubell"
4753
author = "Brent Rubell"
4854

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

0 commit comments

Comments
 (0)