File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Original file line number Diff line number Diff line change 11
11
# All configuration values have a default; values that are commented out
12
12
# serve to show the default.
13
13
14
- import sys , os
14
+ import datetime
15
+ import os
16
+ import sys
15
17
16
18
# If extensions (or modules to document with autodoc) are in another directory,
17
19
# add these directories to sys.path here. If the directory is relative to the
45
47
master_doc = 'index'
46
48
47
49
# General information about the project.
50
+ current_year = datetime .datetime .now ().year
48
51
project = u'pythonguide'
49
- copyright = u'2011–2018 <a href="https://www.kennethreitz.org/projects">Kenneth Reitz</a> & <a href="https://realpython.com">Real Python</a>. <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/">CC BY-NC-SA 3.0</a>'
52
+ copyright = (u'2011-{} <a href="http://kennethreitz.com/pages/open-projects.html">Kenneth Reitz</a>'
53
+ ' & <a href="https://realpython.com">Real Python</a>.'
54
+ ' <a href="http://creativecommons.org/licenses/by-nc-sa/3.0/">CC BY-NC-SA 3.0</a>' ).format (current_year )
50
55
51
56
# The version info for the project you're documenting, acts as replacement for
52
57
# |version| and |release|, also used in various other places throughout the
241
246
epub_title = u'pythonguide'
242
247
epub_author = u'Kenneth Reitz'
243
248
epub_publisher = u'Kenneth Reitz'
244
- epub_copyright = u'2011–2018 , Kenneth Reitz & Real Python'
249
+ epub_copyright = u'2011–{} , Kenneth Reitz & Real Python' . format ( current_year )
245
250
246
251
# The language of the text. It defaults to the language option
247
252
# or en if the language is not set.
You can’t perform that action at this time.
0 commit comments