Skip to content

Commit c315765

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 92930e7 commit c315765

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
@@ -54,8 +54,14 @@
5454

5555
# General information about the project.
5656
project = "Adafruit PYOA Library"
57+
creation_year = "2019"
5758
current_year = str(datetime.datetime.now().year)
58-
copyright = current_year + " Adafruit"
59+
year_duration = (
60+
current_year
61+
if current_year == creation_year
62+
else creation_year + " - " + current_year
63+
)
64+
copyright = year_duration + " Adafruit"
5965
author = "Adafruit"
6066

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

0 commit comments

Comments
 (0)