Skip to content

Commit f0c9724

Browse files
committed
Clean up a bit more mkdocs logic
1 parent 740c75b commit f0c9724

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/doc_builder/backends/mkdocs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ def build(self, **kwargs):
174174
user_config = yaml.safe_load(
175175
open(os.path.join(self.root_path, 'mkdocs.yml'), 'r')
176176
)
177-
del user_config['theme_dir']
177+
if user_config['theme_dir'] == TEMPLATE_DIR:
178+
del user_config['theme_dir']
178179
yaml.dump(
179180
user_config,
180181
open(os.path.join(self.root_path, 'mkdocs.yml'), 'w')

0 commit comments

Comments
 (0)