Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ad1b5e7

Browse files
author
Alec Delaney
committedAug 23, 2022
Use year duration range for copyright attribution
1 parent 9217f94 commit ad1b5e7

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
@@ -44,8 +44,14 @@
4444

4545
# General information about the project.
4646
project = "Adafruit DisplayIO_SSD1305 Library"
47+
creation_year = "2019"
4748
current_year = str(datetime.datetime.now().year)
48-
copyright = current_year + " Melissa LeBlanc-Williams"
49+
year_duration = (
50+
current_year
51+
if current_year == creation_year
52+
else creation_year + " - " + current_year
53+
)
54+
copyright = year_duration + " Melissa LeBlanc-Williams"
4955
author = "Melissa LeBlanc-Williams"
5056

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

0 commit comments

Comments
 (0)
Please sign in to comment.