Skip to content

Commit 8f31605

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 1354509 commit 8f31605

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docs/conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,14 @@
5050

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

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

0 commit comments

Comments
 (0)