From be52715a8cc6c9f6e11c7402aabff360170a609a Mon Sep 17 00:00:00 2001 From: chang-ning Date: Wed, 10 Oct 2018 14:05:34 +0800 Subject: [PATCH] adjust copyright year dynamically Signed-off-by: chang-ning --- docs/conf.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 9d0881dc..7434ca18 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. +from datetime import datetime import sys import os @@ -49,8 +50,9 @@ master_doc = 'index' # General information about the project. +year = datetime.now().year project = u'python-cheatsheet' -copyright = u'2016-2018, crazyguitar' +copyright = u'2016-{}, crazyguitar'.format(year) author = u'crazyguitar' # The version info for the project you're documenting, acts as replacement for