Skip to content

Commit 5f8c103

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 02d3870 commit 5f8c103

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
@@ -63,8 +63,14 @@
6363

6464
# General information about the project.
6565
project = "Adafruit CircuitPython MacroPad Library"
66+
creation_year = "2021"
6667
current_year = str(datetime.datetime.now().year)
67-
copyright = current_year + " Kattni Rembor"
68+
year_duration = (
69+
current_year
70+
if current_year == creation_year
71+
else creation_year + " - " + current_year
72+
)
73+
copyright = year_duration + " Kattni Rembor"
6874
author = "Kattni Rembor"
6975

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

0 commit comments

Comments
 (0)