From 325a7ce5e530845278f45c37d0bb0683388df4dc Mon Sep 17 00:00:00 2001 From: Alec Delaney Date: Tue, 23 Aug 2022 17:26:21 -0400 Subject: [PATCH] Use year duration range for copyright attribution --- docs/conf.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 20864a2..ee9e44e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -45,8 +45,14 @@ # General information about the project. project = "Adafruit TSL2591 Library" +creation_year = "2017" current_year = str(datetime.datetime.now().year) -copyright = current_year + " Tony DiCola" +year_duration = ( + current_year + if current_year == creation_year + else creation_year + " - " + current_year +) +copyright = year_duration + " Tony DiCola" author = "Tony DiCola" # The version info for the project you're documenting, acts as replacement for