Skip to content

Commit a6f916a

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

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
@@ -58,8 +58,14 @@
5858

5959
# General information about the project.
6060
project = "Adafruit CircuitPlayground Library"
61+
creation_year = "2017"
6162
current_year = str(datetime.datetime.now().year)
62-
copyright = current_year + " Scott Shawcroft"
63+
year_duration = (
64+
current_year
65+
if current_year == creation_year
66+
else creation_year + " - " + current_year
67+
)
68+
copyright = year_duration + " Scott Shawcroft"
6369
author = "Scott Shawcroft"
6470

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

0 commit comments

Comments
 (0)