]> git.za3k.com Git - blog.git/commitdiff
Remove rsync publish
authorZachary Vance <za3k@za3k.com>
Tue, 6 Aug 2024 16:33:11 +0000 (12:33 -0400)
committerZachary Vance <za3k@za3k.com>
Tue, 6 Aug 2024 16:33:11 +0000 (12:33 -0400)
blog

diff --git a/blog b/blog
index d3ad3c644e848ab3c1aba0fbaef1a746a78872fd..cdbe66e2510c7b6ce3dc2a08d89566118d473a5d 100755 (executable)
--- 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()