Skip to content

Commit 5bb42ab

Browse files
author
Alec Delaney
committedAug 23, 2022
Use year duration range for copyright attribution
1 parent 770a6d3 commit 5bb42ab

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
@@ -57,8 +57,14 @@
5757

5858
# General information about the project.
5959
project = "Adafruit Slideshow Library"
60+
creation_year = "2018"
6061
current_year = str(datetime.datetime.now().year)
61-
copyright = current_year + " Kattni Rembor"
62+
year_duration = (
63+
current_year
64+
if current_year == creation_year
65+
else creation_year + " - " + current_year
66+
)
67+
copyright = year_duration + " Kattni Rembor"
6268
author = "Kattni Rembor"
6369

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

0 commit comments

Comments
 (0)