Skip to content

Commit 706ad68

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent d6b886a commit 706ad68

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
@@ -53,8 +53,14 @@
5353

5454
# General information about the project.
5555
project = "Adafruit MatrixKeypad Library"
56+
creation_year = "2018"
5657
current_year = str(datetime.datetime.now().year)
57-
copyright = current_year + " ladyada"
58+
year_duration = (
59+
current_year
60+
if current_year == creation_year
61+
else creation_year + " - " + current_year
62+
)
63+
copyright = year_duration + " ladyada"
5864
author = "ladyada"
5965

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

0 commit comments

Comments
 (0)