Skip to content

Commit 92563df

Browse files
authored
Merge pull request #5150 from rtfd/fix-conf-py-insert
Fix Sphinx conf.py inserts
2 parents 1d1dc8b + d571d24 commit 92563df

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl

+3-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# https://github.com/rtfd/readthedocs.org/blob/master/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl
1414
#
1515

16-
from __future__ import absolute_import, division, print_function, unicode_literals
1716

1817
import importlib
1918
import sys
@@ -82,9 +81,9 @@ context = {
8281
("{{ slug }}", "{{ url }}"),{% endfor %}
8382
],
8483
'slug': '{{ project.slug }}',
85-
'name': '{{ project.name }}',
86-
'rtd_language': '{{ project.language }}',
87-
'programming_language': '{{ project.programming_language }}',
84+
'name': u'{{ project.name }}',
85+
'rtd_language': u'{{ project.language }}',
86+
'programming_language': u'{{ project.programming_language }}',
8887
'canonical_url': '{{ project.get_canonical_url }}',
8988
'analytics_code': '{{ project.analytics_code }}',
9089
'single_version': {{ project.single_version }},

readthedocs/rtd_tests/files/conf.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'.md': CommonMarkParser,
1414
}
1515
master_doc = 'index'
16-
project = 'Pip'
16+
project = u'Pip'
1717
copyright = str(datetime.now().year)
1818
version = '0.8.1'
1919
release = '0.8.1'
@@ -23,6 +23,6 @@
2323
html_theme = 'sphinx_rtd_theme'
2424
file_insertion_enabled = False
2525
latex_documents = [
26-
('index', 'pip.tex', 'Pip Documentation',
27-
'', 'manual'),
26+
('index', 'pip.tex', u'Pip Documentation',
27+
u'', 'manual'),
2828
]

readthedocs/templates/sphinx/conf.py.conf

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ source_parsers = {
1313
'.md': CommonMarkParser,
1414
}
1515
master_doc = 'index'
16-
project = '{{ project.name }}'
16+
project = u'{{ project.name }}'
1717
copyright = str(datetime.now().year)
1818
version = '{{ version.verbose_name }}'
1919
release = '{{ version.verbose_name }}'
@@ -23,6 +23,6 @@ htmlhelp_basename = '{{ project.slug }}'
2323
html_theme = 'sphinx_rtd_theme'
2424
file_insertion_enabled = False
2525
latex_documents = [
26-
('index', '{{ project.slug }}.tex', '{{ project.name }} Documentation',
27-
'{{ project.copyright }}', 'manual'),
26+
('index', '{{ project.slug }}.tex', u'{{ project.name }} Documentation',
27+
u'{{ project.copyright }}', 'manual'),
2828
]

0 commit comments

Comments
 (0)