Skip to content

Commit de61f10

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 756f66d commit de61f10

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
@@ -43,8 +43,14 @@
4343

4444
# General information about the project.
4545
project = "Adafruit BLE Adafruit Library"
46+
creation_year = "2020"
4647
current_year = str(datetime.datetime.now().year)
47-
copyright = current_year + " Adafruit Industries"
48+
year_duration = (
49+
current_year
50+
if current_year == creation_year
51+
else creation_year + " - " + current_year
52+
)
53+
copyright = year_duration + " Adafruit Industries"
4854
author = "Adafruit Industries"
4955

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

0 commit comments

Comments
 (0)