Skip to content

Commit 5ed54a1

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 523920d commit 5ed54a1

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
@@ -55,8 +55,14 @@
5555

5656
# General information about the project.
5757
project = "Adafruit CircuitPython FunHouse Library"
58+
creation_year = "2021"
5859
current_year = str(datetime.datetime.now().year)
59-
copyright = current_year + " Melissa LeBlanc-Williams"
60+
year_duration = (
61+
current_year
62+
if current_year == creation_year
63+
else creation_year + " - " + current_year
64+
)
65+
copyright = year_duration + " Melissa LeBlanc-Williams"
6066
author = "Melissa LeBlanc-Williams"
6167

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

0 commit comments

Comments
 (0)