Skip to content

Commit a5db152

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

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
@@ -37,8 +37,14 @@
3737

3838
# General information about the project.
3939
project = "Adafruit am2320 Library"
40+
creation_year = "2017"
4041
current_year = str(datetime.datetime.now().year)
41-
copyright = current_year + " Limor Fried"
42+
year_duration = (
43+
current_year
44+
if current_year == creation_year
45+
else creation_year + " - " + current_year
46+
)
47+
copyright = year_duration + " Limor Fried"
4248
author = "Limor Fried"
4349

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

0 commit comments

Comments
 (0)