Skip to content

Commit a45e7f1

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 3afd8e7 commit a45e7f1

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
@@ -41,8 +41,14 @@
4141

4242
# General information about the project.
4343
project = "Adafruit VC0706 Library"
44+
creation_year = "2017"
4445
current_year = str(datetime.datetime.now().year)
45-
copyright = current_year + " Tony DiCola"
46+
year_duration = (
47+
current_year
48+
if current_year == creation_year
49+
else creation_year + " - " + current_year
50+
)
51+
copyright = year_duration + " Tony DiCola"
4652
author = "Tony DiCola"
4753

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

0 commit comments

Comments
 (0)