Skip to content

Commit a79534b

Browse files
authored
Merge pull request #3616 from stsewd/remove-hard-coded-year
Remove hardcoded copyright year
2 parents 6a13d9e + fac7228 commit a79534b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

docs/conf.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# -*- coding: utf-8 -*-
2-
#
2+
3+
from __future__ import division, print_function, unicode_literals
4+
35
import os
46
import sys
57

@@ -11,6 +13,7 @@
1113
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readthedocs.settings.dev")
1214

1315
from django.conf import settings
16+
from django.utils import timezone
1417

1518
import django
1619
django.setup()
@@ -33,7 +36,9 @@
3336

3437
master_doc = 'index'
3538
project = u'Read the Docs'
36-
copyright = u'2010-2017, Read the Docs, Inc & contributors'
39+
copyright = '2010-{}, Read the Docs, Inc & contributors'.format(
40+
timezone.now().year
41+
)
3742
version = '1.0'
3843
release = '1.0'
3944
exclude_patterns = ['_build']

readthedocs/templates/sphinx/conf.py.conf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# -*- coding: utf-8 -*-
22

3+
from __future__ import division, print_function, unicode_literals
4+
5+
from datetime import datetime
6+
37
from recommonmark.parser import CommonMarkParser
48

59
extensions = []
@@ -10,7 +14,7 @@ source_parsers = {
1014
}
1115
master_doc = 'index'
1216
project = u'{{ project.name }}'
13-
copyright = u'2016'
17+
copyright = str(datetime.now().year)
1418
version = '{{ version.verbose_name }}'
1519
release = '{{ version.verbose_name }}'
1620
exclude_patterns = ['_build']

0 commit comments

Comments
 (0)