Skip to content

Commit cbbd072

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

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
@@ -36,8 +36,14 @@
3636

3737
# General information about the project.
3838
project = "Adafruit HID Library"
39+
creation_year = "2017"
3940
current_year = str(datetime.datetime.now().year)
40-
copyright = current_year + " Scott Shawcroft"
41+
year_duration = (
42+
current_year
43+
if current_year == creation_year
44+
else creation_year + " - " + current_year
45+
)
46+
copyright = year_duration + " Scott Shawcroft"
4147
author = "Scott Shawcroft"
4248

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

0 commit comments

Comments
 (0)