Skip to content

Commit 65cb921

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent e8341ab commit 65cb921

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
@@ -45,8 +45,14 @@
4545

4646
# General information about the project.
4747
project = "Adafruit RGB_Display Library"
48+
creation_year = "2017"
4849
current_year = str(datetime.datetime.now().year)
49-
copyright = current_year + " Michale McWethy"
50+
year_duration = (
51+
current_year
52+
if current_year == creation_year
53+
else creation_year + " - " + current_year
54+
)
55+
copyright = year_duration + " Michale McWethy"
5056
author = "Michale McWethy"
5157

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

0 commit comments

Comments
 (0)