From ccc7ad800b59132e65a9bc5c4c3261aa473cd939 Mon Sep 17 00:00:00 2001 From: Matt Deacalion Stevens Date: Wed, 12 Nov 2014 12:38:21 +0000 Subject: [PATCH] Automatically show correct copyright year in documentation --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 2668b60c9..9218a7cec 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import datetime import sys import os @@ -50,7 +51,8 @@ # General information about the project. project = u'Django Debug Toolbar' -copyright = u'2013, Django Debug Toolbar developers and contributors' +copyright = u'{}, Django Debug Toolbar developers and contributors' +copyright = copyright.format(datetime.date.today().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