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 aa66d0f

Browse files
author
Alec Delaney
committedAug 23, 2022
Use year duration range for copyright attribution
1 parent 206afa4 commit aa66d0f

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
@@ -50,8 +50,14 @@
5050

5151
# General information about the project.
5252
project = "Adafruit DisplayIO_Layout Library"
53+
creation_year = "2021"
5354
current_year = str(datetime.datetime.now().year)
54-
copyright = current_year + " Tim Cocks"
55+
year_duration = (
56+
current_year
57+
if current_year == creation_year
58+
else creation_year + " - " + current_year
59+
)
60+
copyright = year_duration + " Tim Cocks"
5561
author = "Tim Cocks"
5662

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

0 commit comments

Comments
 (0)
Please sign in to comment.