File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,8 @@ def get_config_params(self):
98
98
downloads = api .version (self .version .pk ).get ()['downloads' ]
99
99
100
100
data = {
101
+ 'html_theme' : 'sphinx_rtd_theme' ,
102
+ 'html_theme_import' : 'sphinx_rtd_theme' ,
101
103
'current_version' : self .version .verbose_name ,
102
104
'project' : self .project ,
103
105
'version' : self .version ,
Original file line number Diff line number Diff line change @@ -45,17 +45,17 @@ using_rtd_theme = (
45
45
html_theme in ['default'] and
46
46
# Allow people to bail with a hack of having an html_style
47
47
not 'html_style' in globals()
48
- ) or 'html_theme' in globals()
48
+ ) or 'html_theme' not in globals()
49
49
)
50
50
if using_rtd_theme:
51
- import sphinx_rtd_theme
52
- html_theme = 'sphinx_rtd_theme '
51
+ theme = __import__('{{ html_theme_import }}')
52
+ html_theme = '{{ html_theme }} '
53
53
html_style = None
54
54
html_theme_options = {}
55
55
if 'html_theme_path' in globals():
56
- html_theme_path.append(sphinx_rtd_theme .get_html_theme_path())
56
+ html_theme_path.append(theme .get_html_theme_path())
57
57
else:
58
- html_theme_path = [sphinx_rtd_theme .get_html_theme_path()]
58
+ html_theme_path = [theme .get_html_theme_path()]
59
59
60
60
if globals().get('websupport2_base_url', False):
61
61
websupport2_base_url = '{{ api_host }}/websupport'
You can’t perform that action at this time.
0 commit comments