We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab030ce commit c0a57f7Copy full SHA for c0a57f7
readthedocs/doc_builder/backends/mkdocs.py
@@ -114,7 +114,11 @@ def append_conf(self, **__):
114
115
def generate_rtd_data(self, docs_dir, mkdocs_config):
116
"""Generate template properties and render readthedocs-data.js."""
117
- theme_name = mkdocs_config.get('theme_dir', 'readthedocs').rsplit('/')[-1]
+ # Get the theme name
118
+ theme_name = 'readthedocs'
119
+ theme_dir = mkdocs_config.get('theme_dir')
120
+ if theme_dir:
121
+ theme_name = theme_dir.rstrip('/').split('/')[-1]
122
123
# Will be available in the JavaScript as READTHEDOCS_DATA.
124
readthedocs_data = {
0 commit comments