Skip to content

Commit 0682b46

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent c4dd681 commit 0682b46

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
@@ -42,8 +42,14 @@
4242

4343
# General information about the project.
4444
project = "Adafruit BitbangIO Library"
45+
creation_year = "2020"
4546
current_year = str(datetime.datetime.now().year)
46-
copyright = current_year + " Melissa LeBlanc-Williams"
47+
year_duration = (
48+
current_year
49+
if current_year == creation_year
50+
else creation_year + " - " + current_year
51+
)
52+
copyright = year_duration + " Melissa LeBlanc-Williams"
4753
author = "Melissa LeBlanc-Williams"
4854

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

0 commit comments

Comments
 (0)