Skip to content

Commit 69d671d

Browse files
author
Alec Delaney
committed
Use year duration range for copyright attribution
1 parent f77d0e2 commit 69d671d

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 WAVEFORM 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
# The version info for the project you're documenting, acts as replacement for

0 commit comments

Comments
 (0)