Skip to content

Commit fea919a

Browse files
author
Alec Delaney
committed
Keep copyright up to date in documentation
1 parent 2a7df50 commit fea919a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
# SPDX-License-Identifier: MIT
66
import os
77
import sys
8+
import datetime
89

910
sys.path.insert(0, os.path.abspath(".."))
1011

@@ -38,7 +39,8 @@
3839

3940
# General information about the project.
4041
project = "Adafruit HCSR04 Library"
41-
copyright = "2017 Mike Mabey"
42+
current_year = str(datetime.datetime.now().year)
43+
copyright = current_year + " Mike Mabey"
4244
author = "Mike Mabey"
4345

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

0 commit comments

Comments
 (0)