Skip to content

Commit 0a8fcbf

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent ee4660e commit 0a8fcbf

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
@@ -38,8 +38,14 @@
3838

3939
# General information about the project.
4040
project = "Adafruit CircuitPython SimpleIO Library"
41+
creation_year = "2017"
4142
current_year = str(datetime.datetime.now().year)
42-
copyright = current_year + " Scott Shawcroft"
43+
year_duration = (
44+
current_year
45+
if current_year == creation_year
46+
else creation_year + " - " + current_year
47+
)
48+
copyright = year_duration + " Scott Shawcroft"
4349
author = "Scott Shawcroft"
4450

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

0 commit comments

Comments
 (0)