def publish(self, args): """ Publishes the site based on the configuration from the `target` parameter. """ sitepath = self.main(args) site = self.make_site(sitepath, args.config) from hyde.publisher import Publisher publisher = Publisher.load_publisher(site, args.publisher, args.message) publisher.publish()