Skip to content

Commit 1429a15

Browse files
authored
Update year range in copyright attribution
1 parent 26e1150 commit 1429a15

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
@@ -51,8 +51,14 @@
5151

5252
# General information about the project.
5353
project = "Adafruit CircuitPython circuitpython_typing Library"
54+
creation_year = "2022
5455
current_year = str(datetime.datetime.now().year)
55-
copyright = current_year + " Dan Halbert"
56+
year_duration = (
57+
current_year
58+
if current_year == creation_year
59+
else creation_year + " - " + current_year
60+
)
61+
copyright = year_duration + " Dan Halbert"
5662
author = "Dan Halbert"
5763

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

0 commit comments

Comments
 (0)