Remove livereload stuff (not working)
This commit is contained in:
parent
0eac638fa6
commit
de34ed1a50
@ -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
|
||||
|
9
tasks.py
9
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'])
|
||||
|
Loading…
Reference in New Issue
Block a user