Skip to content

Commit 6234787

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

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
@@ -61,8 +61,14 @@
6161

6262
# General information about the project.
6363
project = "Adafruit seesaw Library"
64+
creation_year = "2017"
6465
current_year = str(datetime.datetime.now().year)
65-
copyright = current_year + " Dean Miller"
66+
year_duration = (
67+
current_year
68+
if current_year == creation_year
69+
else creation_year + " - " + current_year
70+
)
71+
copyright = year_duration + " Dean Miller"
6672
author = "Dean Miller"
6773

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

0 commit comments

Comments
 (0)