Skip to content

Commit 596605f

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 76cae39 commit 596605f

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

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

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

0 commit comments

Comments
 (0)