Skip to content

Commit dae4b4b

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent 08ecad1 commit dae4b4b

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 itertools Library"
40+
creation_year = "2019"
4041
current_year = str(datetime.datetime.now().year)
41-
copyright = current_year + " Dave Astels"
42+
year_duration = (
43+
current_year
44+
if current_year == creation_year
45+
else creation_year + " - " + current_year
46+
)
47+
copyright = year_duration + " Dave Astels"
4248
author = "Dave Astels"
4349

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

0 commit comments

Comments
 (0)