Skip to content

Commit ac2c4ee

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 41f00f2 commit ac2c4ee

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
@@ -52,8 +52,14 @@
5252

5353
# General information about the project.
5454
project = "Adafruit ADT7410 Library"
55+
creation_year = "2019"
5556
current_year = str(datetime.datetime.now().year)
56-
copyright = current_year + " ladyada"
57+
year_duration = (
58+
current_year
59+
if current_year == creation_year
60+
else creation_year + " - " + current_year
61+
)
62+
copyright = year_duration + " ladyada"
5763
author = "ladyada"
5864

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

0 commit comments

Comments
 (0)