Skip to content

Commit c8e82b9

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 11994a0 commit c8e82b9

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
@@ -52,8 +52,14 @@
5252

5353
# General information about the project.
5454
project = "Adafruit LSM6DS Library"
55+
creation_year = "2019"
5556
current_year = str(datetime.datetime.now().year)
56-
copyright = current_year + " Bryan Siepert"
57+
year_duration = (
58+
current_year
59+
if current_year == creation_year
60+
else creation_year + " - " + current_year
61+
)
62+
copyright = year_duration + " Bryan Siepert"
5763
author = "Bryan Siepert"
5864

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

0 commit comments

Comments
 (0)