Skip to content

Commit 9ace770

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 813c179 commit 9ace770

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Diff for: docs/conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@
4545

4646
# General information about the project.
4747
project = "Adafruit CircuitPython Bus Device"
48+
creation_year = "2016"
4849
current_year = str(datetime.datetime.now().year)
49-
copyright = current_year + " Scott Shawcroft and Tony Dicola for Adafruit Industries"
50+
year_duration = (
51+
current_year
52+
if current_year == creation_year
53+
else creation_year + " - " + current_year
54+
)
55+
copyright = year_duration + " Scott Shawcroft and Tony Dicola for Adafruit Industries"
5056
author = "Scott Shawcroft and Tony Dicola"
5157

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

0 commit comments

Comments
 (0)