def _nb2htmlfname(nb_path, dest=None): fname = rename_for_jekyll(nb_path, warnings=warnings) if dest is None: dest = Config().doc_path return Path(dest)/fname
import sys from pathlib import Path from fast_template import rename_for_jekyll if __name__ == "__main__": file_path = Path(sys.argv[1]) new_name = rename_for_jekyll(file_path) print(new_name)