Skip to content

Commit 5365b7e

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 3ff7cc5 commit 5365b7e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,14 @@
4646

4747
# General information about the project.
4848
project = "Adafruit ATECC Library"
49+
creation_year = "2019"
4950
current_year = str(datetime.datetime.now().year)
50-
copyright = current_year + " Brent Rubell"
51+
year_duration = (
52+
current_year
53+
if current_year == creation_year
54+
else creation_year + " - " + current_year
55+
)
56+
copyright = year_duration + " Brent Rubell"
5157
author = "Brent Rubell"
5258

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

0 commit comments

Comments
 (0)