Skip to content

Commit 726270f

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 5561158 commit 726270f

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
@@ -78,8 +78,14 @@
7878

7979
# General information about the project.
8080
project = "Adafruit's DS3231 RTC Library"
81+
creation_year = "2016"
8182
current_year = str(datetime.datetime.now().year)
82-
copyright = current_year + " Philip Moyer"
83+
year_duration = (
84+
current_year
85+
if current_year == creation_year
86+
else creation_year + " - " + current_year
87+
)
88+
copyright = year_duration + " Philip Moyer"
8389
author = "Philip Moyer"
8490

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

0 commit comments

Comments
 (0)