From fc639afa1111e31d13dd9f261ba63d2c4ca65849 Mon Sep 17 00:00:00 2001 From: Shaily Sangwan Date: Tue, 13 Sep 2016 11:37:44 +0530 Subject: [PATCH] replaced static with dynamically generated copyright year --- docs/en_us/enrollment_api/source/conf.py | 3 +-- docs/en_us/platform_api/source/conf.py | 3 +-- docs/shared/conf.py | 5 +++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/docs/en_us/enrollment_api/source/conf.py b/docs/en_us/enrollment_api/source/conf.py index 62367fc2bc..46449d29c8 100644 --- a/docs/en_us/enrollment_api/source/conf.py +++ b/docs/en_us/enrollment_api/source/conf.py @@ -95,5 +95,4 @@ extensions = [ exclude_patterns = ['build', 'links.rst'] -project = u'edX Enrollment API Version 1' -copyright = u'2015, edX' +project = 'edX Enrollment API Version 1' diff --git a/docs/en_us/platform_api/source/conf.py b/docs/en_us/platform_api/source/conf.py index 63ad3e6f92..7f79a33850 100644 --- a/docs/en_us/platform_api/source/conf.py +++ b/docs/en_us/platform_api/source/conf.py @@ -241,7 +241,6 @@ extensions = [ 'sphinx.ext.todo', 'sphinx.ext.coverage', 'sphinx.ext.pngmath', 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', 'sphinxcontrib.napoleon'] -project = u'Open edX Platform APIs' -copyright = u'2016, edX Inc. and licensed under a Creative Commons Attribution-ShareAlike 4.0 International License unless otherwise specified' +project = 'Open edX Platform APIs' exclude_patterns = ['build', 'links.rst'] diff --git a/docs/shared/conf.py b/docs/shared/conf.py index d8a2681882..9778b50c39 100644 --- a/docs/shared/conf.py +++ b/docs/shared/conf.py @@ -22,6 +22,7 @@ # ----------------------------------------------------------------------------- import os +import datetime BASEDIR = os.path.dirname(os.path.abspath(__file__)) @@ -63,8 +64,8 @@ source_suffix = '.rst' master_doc = 'index' # General information about the project. -project = u'edX' -copyright = u'2013, EdX Doc Team' +project = 'edX' +copyright = '{year}, edX Inc. and licensed under a Creative Commons Attribution-ShareAlike 4.0 International License unless otherwise specified'.format(year=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