Skip to content

Commit 5e6d367

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent a74f252 commit 5e6d367

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 ESP32SPI Library"
51+
creation_year = "2019"
5152
current_year = str(datetime.datetime.now().year)
52-
copyright = current_year + " ladyada"
53+
year_duration = (
54+
current_year
55+
if current_year == creation_year
56+
else creation_year + " - " + current_year
57+
)
58+
copyright = year_duration + " ladyada"
5359
author = "ladyada"
5460

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

0 commit comments

Comments
 (0)