Skip to content

Commit cee6435

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 8687b2c commit cee6435

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
@@ -47,8 +47,14 @@
4747

4848
# General information about the project.
4949
project = "Adafruit CircuitPython Ducky Library"
50+
creation_year = "2021"
5051
current_year = str(datetime.datetime.now().year)
51-
copyright = current_year + " Eva Herrada"
52+
year_duration = (
53+
current_year
54+
if current_year == creation_year
55+
else creation_year + " - " + current_year
56+
)
57+
copyright = year_duration + " Eva Herrada"
5258
author = "Eva Herrada"
5359

5460
# Ignore imports of these modules, which sphinx will not know about.

0 commit comments

Comments
 (0)