Skip to content

Commit 38d9689

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 8629457 commit 38d9689

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
@@ -40,8 +40,14 @@
4040

4141
# General information about the project.
4242
project = "Adafruit BME680 Library"
43+
creation_year = "2017"
4344
current_year = str(datetime.datetime.now().year)
44-
copyright = current_year + " ladyada"
45+
year_duration = (
46+
current_year
47+
if current_year == creation_year
48+
else creation_year + " - " + current_year
49+
)
50+
copyright = year_duration + " ladyada"
4551
author = "ladyada"
4652

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

0 commit comments

Comments
 (0)