clean.py 379 B

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