Skip to content

Commit 0da4190

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent a3714a3 commit 0da4190

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
@@ -47,8 +47,14 @@
4747

4848
# General information about the project.
4949
project = "Adafruit CircuitPython Radial_Controller Library"
50+
creation_year = "2021"
5051
current_year = str(datetime.datetime.now().year)
51-
copyright = current_year + " Dan Halbert for Adafruit Industries"
52+
year_duration = (
53+
current_year
54+
if current_year == creation_year
55+
else creation_year + " - " + current_year
56+
)
57+
copyright = year_duration + " Dan Halbert for Adafruit Industries"
5258
author = "Dan Halbert for Adafruit Industries"
5359

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

0 commit comments

Comments
 (0)