Skip to content

Commit c1a7185

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent ba2b03c commit c1a7185

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
@@ -44,8 +44,14 @@
4444

4545
# General information about the project.
4646
project = "Adafruit SSD1327 Library"
47+
creation_year = "2019"
4748
current_year = str(datetime.datetime.now().year)
48-
copyright = current_year + " Scott Shawcroft"
49+
year_duration = (
50+
current_year
51+
if current_year == creation_year
52+
else creation_year + " - " + current_year
53+
)
54+
copyright = year_duration + " Scott Shawcroft"
4955
author = "Scott Shawcroft"
5056

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

0 commit comments

Comments
 (0)