Skip to content

Commit e7e8ab4

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 57203e0 commit e7e8ab4

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
@@ -45,8 +45,14 @@
4545

4646
# General information about the project.
4747
project = "Adafruit LIS2MDL 3-axis Magnetometer Library"
48+
creation_year = "2019"
4849
current_year = str(datetime.datetime.now().year)
49-
copyright = current_year + " Bryan Siepert"
50+
year_duration = (
51+
current_year
52+
if current_year == creation_year
53+
else creation_year + " - " + current_year
54+
)
55+
copyright = year_duration + " Bryan Siepert"
5056
author = "Bryan Siepert"
5157

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

0 commit comments

Comments
 (0)