Skip to content

Commit d3c7d0c

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

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
@@ -66,8 +66,14 @@
6666

6767
# General information about the project.
6868
project = "Adafruit CLUE Library"
69+
creation_year = "2020"
6970
current_year = str(datetime.datetime.now().year)
70-
copyright = current_year + " Kattni Rembor"
71+
year_duration = (
72+
current_year
73+
if current_year == creation_year
74+
else creation_year + " - " + current_year
75+
)
76+
copyright = year_duration + " Kattni Rembor"
7177
author = "Kattni Rembor"
7278

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

0 commit comments

Comments
 (0)