From de34ed1a500817a71313570bdd7d82ae6e544c88 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 1 Jul 2019 12:39:00 +0200 Subject: [PATCH] Remove livereload stuff (not working) --- README.md | 9 --------- tasks.py | 9 --------- 2 files changed, 18 deletions(-) diff --git a/README.md b/README.md index 162cc20..76fc16d 100644 --- a/README.md +++ b/README.md @@ -51,19 +51,10 @@ Then the site is available at the following URL: While working on the site, you can run the following: -```bash -$ invoke livereload -``` - -And then the Pelican development server will automatically reload -when you make changes. It is also possible to use: - ```bash $ pelican --autoreload --listen --relative-urls ``` -However, this will not automatically refresh your browser page. - ### Writing drafts Use `Status: draft` in the article metadata. When the site is generated, the diff --git a/tasks.py b/tasks.py index 256da24..f510665 100644 --- a/tasks.py +++ b/tasks.py @@ -5,7 +5,6 @@ import shutil import sys from invoke import task -from livereload import Server from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer CONFIG = { @@ -76,11 +75,3 @@ def publish(c): # TODO: use generation and rsync here for publishing # also update README.md "Deploying the site" instructions c.run('git push origin master') - - -@task -def livereload(c): - """Get automatic live reloading when hacking on the site""" - server = Server() - server.watch(CONFIG['content_path'], lambda: build(c)) - server.serve(root=CONFIG['deploy_path'], port=CONFIG['port'])