Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit 9a2135a

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 1993a28 commit 9a2135a

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
@@ -41,8 +41,14 @@
4141

4242
# General information about the project.
4343
project = "Adafruit Thermal Printer Library"
44+
creation_year = "2017"
4445
current_year = str(datetime.datetime.now().year)
45-
copyright = current_year + " Tony DiCola"
46+
year_duration = (
47+
current_year
48+
if current_year == creation_year
49+
else creation_year + " - " + current_year
50+
)
51+
copyright = year_duration + " Tony DiCola"
4652
author = "Tony DiCola"
4753

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

0 commit comments

Comments
 (0)