Skip to content

Commit

Permalink
fix: try rmtree first
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Sep 9, 2024
1 parent 9ae14c1 commit 958a120
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sphinx_ape/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,5 @@ def _setup_redirect(self):
self.index_file.write_text(REDIRECT_HTML.format(redirect))

def _sphinx_build(self, dst_path: Path):
shutil.rmtree(dst_path, ignore_errors=True)
sphinx_build(dst_path, self.docs_path)

0 comments on commit 958a120

Please sign in to comment.