File tree 2 files changed +12
-3
lines changed
readthedocs/templates/sphinx 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
- #
2
+
3
+ from __future__ import division , print_function , unicode_literals
4
+
3
5
import os
4
6
import sys
5
7
11
13
os .environ .setdefault ("DJANGO_SETTINGS_MODULE" , "readthedocs.settings.dev" )
12
14
13
15
from django .conf import settings
16
+ from django .utils import timezone
14
17
15
18
import django
16
19
django .setup ()
33
36
34
37
master_doc = 'index'
35
38
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
+ )
37
42
version = '1.0'
38
43
release = '1.0'
39
44
exclude_patterns = ['_build' ]
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
+ from __future__ import division, print_function, unicode_literals
4
+
5
+ from datetime import datetime
6
+
3
7
from recommonmark.parser import CommonMarkParser
4
8
5
9
extensions = []
@@ -10,7 +14,7 @@ source_parsers = {
10
14
}
11
15
master_doc = 'index'
12
16
project = u'{{ project.name }}'
13
- copyright = u'2016'
17
+ copyright = str(datetime.now().year)
14
18
version = '{{ version.verbose_name }}'
15
19
release = '{{ version.verbose_name }}'
16
20
exclude_patterns = ['_build']
You can’t perform that action at this time.
0 commit comments