From: Zachary Vance Date: Tue, 6 Aug 2024 16:33:11 +0000 (-0400) Subject: Remove rsync publish X-Git-Url: https://git.za3k.com/?a=commitdiff_plain;h=8e433fbbbbe557e2aa5e88f0f73a48546c974810;p=blog.git Remove rsync publish --- diff --git a/blog b/blog index d3ad3c6..cdbe66e 100755 --- a/blog +++ b/blog @@ -2,7 +2,7 @@ """ Generates blog.za3k.com from source files. Source files consist of a YAML "front material", and markdown body. -Mostly they have been exported from wordpress by wordpress2frontmaterial.py. +Mostly they have been exported from wordpress. This is one big honking violation of: @@ -430,16 +430,12 @@ class Blog(PseudoMap): 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", description="Generate za3k's blog from markdown files with YAML frontmatter and some templates", ) parser.add_argument("-l", "--local", action='store_true', help="use relative paths for links") - parser.add_argument("-p", "--publish", action='store_true', help="publish to blog2.za3k.com") parser.add_argument("-c", "--config", help="location of config file", default="config.yaml") args = parser.parse_args() @@ -450,5 +446,3 @@ if __name__ == "__main__": blog.clean() blog.generate_all() - if not args.local and args.publish: - blog.publish()