Dynamically update copyright year at publication

Change-Id: Ic4148e4ab0061f1af00990e11762609fe9f51bf9
This commit is contained in:
Jeremy Stanley 2015-03-25 21:10:36 +00:00
parent 81bb344026
commit e075e3247a

View File

@ -11,6 +11,7 @@
# All configuration values have a default; values that are commented out # All configuration values have a default; values that are commented out
# serve to show the default. # serve to show the default.
import datetime
import sys import sys
import os import os
@ -50,10 +51,10 @@ master_doc = 'index'
# General information about the project. # General information about the project.
project = u'OpenStack Project Infrastructure Manual' project = u'OpenStack Project Infrastructure Manual'
copyright = Markup(u'2014, OpenStack Contributors ' copyright = Markup(u'%s, OpenStack Contributors '
u'- use the <a href="https://git.openstack.org/cgit/' u'- use the <a href="https://git.openstack.org/cgit/'
u'openstack-infra/infra-manual">infra-manual git repo</a> ' u'openstack-infra/infra-manual">infra-manual git repo</a> '
u'to propose changes') u'to propose changes' % datetime.date.today().year)
# The language for content autogenerated by Sphinx. Refer to documentation # The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages. # for a list of supported languages.
@ -235,7 +236,7 @@ texinfo_documents = [
epub_title = u'OpenStack Project Infrastructure Manual' epub_title = u'OpenStack Project Infrastructure Manual'
epub_author = u'OpenStack Contributors' epub_author = u'OpenStack Contributors'
epub_publisher = 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 # The language of the text. It defaults to the language option
# or en if the language is not set. # or en if the language is not set.