Skip to content

Commit 237ed2b

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent deb82d2 commit 237ed2b

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
@@ -56,8 +56,14 @@
5656

5757
# General information about the project.
5858
project = "Adafruit Gizmo Library"
59+
creation_year = "2019"
5960
current_year = str(datetime.datetime.now().year)
60-
copyright = current_year + " Carter Nelson"
61+
year_duration = (
62+
current_year
63+
if current_year == creation_year
64+
else creation_year + " - " + current_year
65+
)
66+
copyright = year_duration + " Carter Nelson"
6167
author = "Carter Nelson"
6268

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

0 commit comments

Comments
 (0)