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 <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2020-12-16 08:32:36 -08:00 committed by David Kinder
parent bdcfb5c83b
commit 61e5957129
1 changed files with 3 additions and 1 deletions

View File

@ -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