From f1b31d4ee30fbb48f7fd9fc4359fe89dfd912b67 Mon Sep 17 00:00:00 2001 From: Leif Madsen Date: Thu, 26 Jan 2017 15:34:50 -0500 Subject: [PATCH] Make the copyright date dynamic This skillfully steals the same type of code as what Rally uses in their documentation. Change-Id: I0f35c457311d95649ebbf10e70713bd0399adc4d --- doc/source/conf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index 31183521b..bd87eab27 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -12,6 +12,7 @@ import os import sys +import datetime sys.path.insert(0, os.path.abspath('../..')) # -- General configuration ---------------------------------------------------- @@ -36,7 +37,7 @@ master_doc = 'index' # General information about the project. project = u'browbeat' -copyright = u'2013, OpenStack Foundation' +copyright = u"%d, OpenStack Foundation" % datetime.datetime.now().year # If true, '()' will be appended to :func: etc. cross-reference text. add_function_parentheses = True