Skip to content

Commit f67f0e7

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

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
@@ -36,8 +36,14 @@
3636

3737
# General information about the project.
3838
project = "Adafruit GPS Library"
39+
creation_year = "2017"
3940
current_year = str(datetime.datetime.now().year)
40-
copyright = current_year + " Tony DiCola, James Carr"
41+
year_duration = (
42+
current_year
43+
if current_year == creation_year
44+
else creation_year + " - " + current_year
45+
)
46+
copyright = year_duration + " Tony DiCola, James Carr"
4147
author = "Tony DiCola, James Carr"
4248

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

0 commit comments

Comments
 (0)