Skip to content

Commit f7d7ed1

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

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
@@ -80,8 +80,14 @@
8080

8181
# General information about the project.
8282
project = "Adafruit's CCS811 Library"
83+
creation_year = "2016"
8384
current_year = str(datetime.datetime.now().year)
84-
copyright = current_year + " Dean Miller, Scott Shawcroft"
85+
year_duration = (
86+
current_year
87+
if current_year == creation_year
88+
else creation_year + " - " + current_year
89+
)
90+
copyright = year_duration + " Dean Miller, Scott Shawcroft"
8591
author = "Dean Miller, Scott Shawcroft"
8692

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

0 commit comments

Comments
 (0)