From e075e3247a83f69aae11246b5431dee3964b4dc3 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Wed, 25 Mar 2015 21:10:36 +0000 Subject: [PATCH] Dynamically update copyright year at publication Change-Id: Ic4148e4ab0061f1af00990e11762609fe9f51bf9 --- doc/source/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/source/conf.py b/doc/source/conf.py index c54dab0..73481bc 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -11,6 +11,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import datetime import sys import os @@ -50,10 +51,10 @@ master_doc = 'index' # General information about the project. project = u'OpenStack Project Infrastructure Manual' -copyright = Markup(u'2014, OpenStack Contributors ' +copyright = Markup(u'%s, OpenStack Contributors ' u'- use the infra-manual git repo ' - u'to propose changes') + u'to propose changes' % datetime.date.today().year) # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. @@ -235,7 +236,7 @@ texinfo_documents = [ epub_title = u'OpenStack Project Infrastructure Manual' epub_author = u'OpenStack Contributors' epub_publisher = u'OpenStack Contributors' -epub_copyright = u'2014, OpenStack Contributors' +epub_copyright = u'%s, OpenStack Contributors' % datetime.date.today().year # The language of the text. It defaults to the language option # or en if the language is not set.