From 61e5957129da8ef8d5bef22868877505cc5453de Mon Sep 17 00:00:00 2001 From: "David B. Kinder" Date: Wed, 16 Dec 2020 08:32:36 -0800 Subject: [PATCH] doc: automate copyright year footer Automatically update the copyright year on the page footers to be 2018-[current_year] when generating documentation. Signed-off-by: David B. Kinder --- doc/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/conf.py b/doc/conf.py index e47b42551..9e2fc025b 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -18,6 +18,8 @@ # import os import sys +from datetime import datetime + sys.path.insert(0, os.path.abspath('.')) RELEASE = "" @@ -75,7 +77,7 @@ master_doc = 'index' # General information about the project. project = u'Project ACRN™' -copyright = u'2020, Project ACRN' +copyright = u'2018-' + str(datetime.now().year) + u', Project ACRN' author = u'Project ACRN developers' # The version info for the project you're documenting, acts as replacement for