Skip to content

Commit ecbb272

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 6ee2704 commit ecbb272

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
@@ -44,9 +44,15 @@
4444

4545
# General information about the project.
4646
project = "Adafruit WS2801 Library"
47+
creation_year = "2018"
4748
current_year = str(datetime.datetime.now().year)
49+
year_duration = (
50+
current_year
51+
if current_year == creation_year
52+
else creation_year + " - " + current_year
53+
)
4854
copyright = (
49-
current_year + " Damien P. George, Limor Fried & Scott Shawcroft, Kevin J Walters"
55+
year_duration + " Damien P. George, Limor Fried & Scott Shawcroft, Kevin J Walters"
5056
)
5157
author = "Damien P. George, Limor Fried & Scott Shawcroft, Kevin J Walters"
5258

0 commit comments

Comments
 (0)