Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
restrepo
GitHub Repository: restrepo/ComputationalMethods
Path: blob/master/scripts/clean.py
934 views
1
"""A helper script to "clean up" all of your generated markdown and HTML files."""
2
import shutil as sh
3
from pathlib import Path
4
5
path_root = Path(__file__).parent.parent
6
7
paths = [path_root.joinpath('_site'),
8
path_root.joinpath('_build')]
9
for path in paths:
10
print(f'Removing {path}...')
11
sh.rmtree(path, ignore_errors=True)
12
13
print('Done!')
14
15