Skip to content

Commit ccfcc1e

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent c4a6f10 commit ccfcc1e

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
@@ -58,8 +58,14 @@
5858

5959
# General information about the project.
6060
project = "Adafruit CircuitPython ov5640 Library"
61+
creation_year = "2021"
6162
current_year = str(datetime.datetime.now().year)
62-
copyright = current_year + " Jeff Epler"
63+
year_duration = (
64+
current_year
65+
if current_year == creation_year
66+
else creation_year + " - " + current_year
67+
)
68+
copyright = year_duration + " Jeff Epler"
6369
author = "Jeff Epler"
6470

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

0 commit comments

Comments
 (0)