Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1723ecb

Browse filesBrowse files
authored
Merge pull request #980 from Gouravchawla/copyright_update
Update copyright to be dynamic
2 parents 4ae0b0e + 972b2df commit 1723ecb
Copy full SHA for 1723ecb

File tree

Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-3
lines changed

‎docs/conf.py

Copy file name to clipboardExpand all lines: docs/conf.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
# All configuration values have a default; values that are commented out
1212
# serve to show the default.
1313

14-
import sys, os
14+
import datetime
15+
import os
16+
import sys
1517

1618
# If extensions (or modules to document with autodoc) are in another directory,
1719
# add these directories to sys.path here. If the directory is relative to the
@@ -45,8 +47,11 @@
4547
master_doc = 'index'
4648

4749
# General information about the project.
50+
current_year = datetime.datetime.now().year
4851
project = u'pythonguide'
49-
copyright = u'2011–2018 <a href="https://www.kennethreitz.org/projects">Kenneth Reitz</a> &amp; <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+
' &amp; <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)
5055

5156
# The version info for the project you're documenting, acts as replacement for
5257
# |version| and |release|, also used in various other places throughout the
@@ -241,7 +246,7 @@
241246
epub_title = u'pythonguide'
242247
epub_author = u'Kenneth Reitz'
243248
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)
245250

246251
# The language of the text. It defaults to the language option
247252
# or en if the language is not set.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.