Skip to content

Commit de4680f

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 4e0b011 commit de4680f

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
@@ -48,8 +48,14 @@
4848

4949
# General information about the project.
5050
project = "Adafruit BluefruitSPI Library"
51+
creation_year = "2018"
5152
current_year = str(datetime.datetime.now().year)
52-
copyright = current_year + " Kevin Townsend"
53+
year_duration = (
54+
current_year
55+
if current_year == creation_year
56+
else creation_year + " - " + current_year
57+
)
58+
copyright = year_duration + " Kevin Townsend"
5359
author = "Kevin Townsend"
5460

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

0 commit comments

Comments
 (0)