Skip to content

Commit 1b1f7f4

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

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/conf.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,14 @@
3939

4040
# General information about the project.
4141
project = "Adafruit HCSR04 Library"
42+
creation_year = "2017"
4243
current_year = str(datetime.datetime.now().year)
43-
copyright = current_year + " Mike Mabey"
44+
year_duration = (
45+
current_year
46+
if current_year == creation_year
47+
else creation_year + " - " + current_year
48+
)
49+
copyright = year_duration + " Mike Mabey"
4450
author = "Mike Mabey"
4551

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

0 commit comments

Comments
 (0)