Skip to content

Commit 0d3c0a7

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 6925b55 commit 0d3c0a7

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
@@ -64,8 +64,14 @@
6464

6565
# General information about the project.
6666
project = "Adafruit MonsterM4sk Library"
67+
creation_year = "2020"
6768
current_year = str(datetime.datetime.now().year)
68-
copyright = current_year + " Foamyguy"
69+
year_duration = (
70+
current_year
71+
if current_year == creation_year
72+
else creation_year + " - " + current_year
73+
)
74+
copyright = year_duration + " Foamyguy"
6975
author = "Foamyguy"
7076

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

0 commit comments

Comments
 (0)