Skip to content

Commit 41f69cc

Browse files
authored
Use year range for copyright attribution
1 parent 7247f80 commit 41f69cc

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
@@ -49,8 +49,14 @@
4949

5050
# General information about the project.
5151
project = "Adafruit CircuitPython TCA8418 Library"
52+
creation_year = "2022"
5253
current_year = str(datetime.datetime.now().year)
53-
copyright = current_year + " ladyada"
54+
year_duration = (
55+
current_year
56+
if current_year == creation_year
57+
else creation_year + " - " + current_year
58+
)
59+
copyright = year_duration + " ladyada"
5460
author = "ladyada"
5561

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

0 commit comments

Comments
 (0)