# HG changeset patch # User Marcin Kuzminski # Date 2012-04-23 16:21:40 # Node ID 6b97fb00fa03afe3be933ebfe2d999325f246c65 # Parent 8ce4c8e43eb767940529c03b399423a18a31ac00 autogenerate year for docs/conf.py diff --git a/docs/conf.py b/docs/conf.py --- a/docs/conf.py +++ b/docs/conf.py @@ -11,7 +11,9 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys, os +import sys +import os +import datetime # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -25,7 +27,9 @@ sys.path.insert(0, os.path.abspath('..') # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', 'sphinx.ext.intersphinx', 'sphinx.ext.todo', 'sphinx.ext.viewcode'] +extensions = ['sphinx.ext.autodoc', 'sphinx.ext.doctest', + 'sphinx.ext.intersphinx', 'sphinx.ext.todo', + 'sphinx.ext.viewcode'] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -41,7 +45,7 @@ master_doc = 'index' # General information about the project. project = u'RhodeCode' -copyright = u'2010, Marcin Kuzminski' +copyright = u'%s, Marcin Kuzminski' % (datetime.datetime.now().year) # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the