File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
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 14
14
#
15
15
16
16
17
+ import importlib
17
18
import sys
18
19
import os.path
19
20
from six import string_types
@@ -48,14 +49,14 @@ using_rtd_theme = (
48
49
) or 'html_theme' not in globals()
49
50
)
50
51
if using_rtd_theme:
51
- import sphinx_rtd_theme
52
- html_theme = 'sphinx_rtd_theme '
52
+ theme = importlib.import_module('{{ html_theme_import }}')
53
+ html_theme = '{{ html_theme }} '
53
54
html_style = None
54
55
html_theme_options = {}
55
56
if 'html_theme_path' in globals():
56
- html_theme_path.append(sphinx_rtd_theme .get_html_theme_path())
57
+ html_theme_path.append(theme .get_html_theme_path())
57
58
else:
58
- html_theme_path = [sphinx_rtd_theme .get_html_theme_path()]
59
+ html_theme_path = [theme .get_html_theme_path()]
59
60
60
61
if globals().get('websupport2_base_url', False):
61
62
websupport2_base_url = '{{ api_host }}/websupport'
You can’t perform that action at this time.
0 commit comments