Other than that I think it's pretty nice!
"""
+# TODO: Pagination for main blog, categories, tag
+
import sys
sys.dont_write_bytecode = True
assert self.destination
os.system("rm -rf \"{}\"/*".format(self.destination))
+ def publish(self):
+ os.system("rsync -r --delete {destination}/ germinate:/var/www/blog".format(destination=self.destination))
+
if __name__ == "__main__":
parser = argparse.ArgumentParser(
prog="blog",
if args.all:
blog.clean()
blog.generate_all()
+ blog.publish()
else:
blog.updates_happened(args.changed_files)