Skip to content

Commit 63cb019

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 42bf709 commit 63cb019

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
@@ -46,8 +46,14 @@
4646

4747
# General information about the project.
4848
project = "Adafruit CircuitPython DHT Library"
49+
creation_year = "2017"
4950
current_year = str(datetime.datetime.now().year)
50-
copyright = current_year + " Mike McWethy"
51+
year_duration = (
52+
current_year
53+
if current_year == creation_year
54+
else creation_year + " - " + current_year
55+
)
56+
copyright = year_duration + " Mike McWethy"
5157
author = "Mike McWethy"
5258

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

0 commit comments

Comments
 (0)