Remove livereload stuff (not working)

This commit is contained in:
Luke Murphy 2019-07-01 12:39:00 +02:00
parent 0eac638fa6
commit de34ed1a50
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 0 additions and 18 deletions

View File

@ -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

View File

@ -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'])