Skip to content

Commit 6e0a8dc

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent e728f7a commit 6e0a8dc

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

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

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

0 commit comments

Comments
 (0)