Skip to content

Commit 7037298

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

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
@@ -38,8 +38,14 @@
3838

3939
# General information about the project.
4040
project = "Adafruit LIFX Library"
41+
creation_year = "2019"
4142
current_year = str(datetime.datetime.now().year)
42-
copyright = current_year + " Brent Rubell"
43+
year_duration = (
44+
current_year
45+
if current_year == creation_year
46+
else creation_year + " - " + current_year
47+
)
48+
copyright = year_duration + " Brent Rubell"
4349
author = "Brent Rubell"
4450

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

0 commit comments

Comments
 (0)