Skip to content

Commit 2cd4a5d

Browse files
remove generated_single folder in the end to avoid polluting the directory (and otherwise causing sphinx warnings)
1 parent 358e08d commit 2cd4a5d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

doc/make.py

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
from contextlib import contextmanager
2020
import webbrowser
2121
import jinja2
22+
import shutil
23+
2224
import pandas
2325

2426

@@ -243,6 +245,8 @@ def html(self):
243245

244246
if self.single_doc is not None:
245247
self._open_browser()
248+
shutil.rmtree(os.path.join(SOURCE_PATH, 'generated_single'),
249+
ignore_errors=True)
246250

247251
def latex(self, force=False):
248252
"""Build PDF documentation."""

0 commit comments

Comments
 (0)