"""A helper script to "clean up" all of your generated markdown and HTML files.""" import shutil as sh import os.path as op path_root = op.join(op.dirname(op.abspath(__file__)), '..') paths = [op.join(path_root, '_site'), op.join(path_root, '_build')] for path in paths: print('Removing {}...'.format(path)) sh.rmtree(path, ignore_errors=True) print('Done!')