Open ghost opened 9 years ago
I created function for generation sitemaps. Just put it in the end of file and call inside main func
def load_site_map(static_path): arguments = docopt(__doc__, version='0.1.3') sitemaps = ["sitemap.xml","sitemap-posts.xml","sitemap-authors.xml","sitemap-tags.xml"] for sitemap in sitemaps: path = os.path.join(static_path, sitemap) if os.path.exists(path): os.remove(path) else: print("File not found %s." % path) command = ("wget " "--directory-prefix {1} " # download contents to static/ folder "{0}/{2}").format(arguments['--domain'], static_path,sitemap) os.system(command)
@spirogov Fork the repo and make a pull request.
@bheru27 ok, but who will merge it, as i see this repo is dead?
I created function for generation sitemaps. Just put it in the end of file and call inside main func