Skip to content

Commit a815f36

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 473c23d commit a815f36

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
@@ -45,8 +45,14 @@
4545

4646
# General information about the project.
4747
project = "Adafruit RFM69 Library"
48+
creation_year = "2017"
4849
current_year = str(datetime.datetime.now().year)
49-
copyright = current_year + " Tony DiCola"
50+
year_duration = (
51+
current_year
52+
if current_year == creation_year
53+
else creation_year + " - " + current_year
54+
)
55+
copyright = year_duration + " Tony DiCola"
5056
author = "Tony DiCola"
5157

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

0 commit comments

Comments
 (0)