HELK/docs/scripts/clean.py

14 lines
356 B
Python
Executable File

"""A helper script to "clean up" all of your generated markdown and HTML files."""
import shutil as sh
from pathlib import Path
path_root = Path(__file__).parent.parent
paths = [path_root.joinpath('_site'),
path_root.joinpath('_build')]
for path in paths:
print(f'Removing {path}...')
sh.rmtree(path, ignore_errors=True)
print('Done!')