Docs: LiveReload option

This commit is contained in:
Frank Taillandier 2018-01-02 22:22:05 +01:00
parent c9da3c424a
commit a3351cff4f
No known key found for this signature in database
GPG Key ID: E73258E3F50AEB7E
1 changed files with 6 additions and 4 deletions

View File

@ -65,15 +65,17 @@ jekyll serve
# => A development server will run at http://localhost:4000/
# Auto-regeneration: enabled. Use `--no-watch` to disable.
jekyll serve --livreload
# LiveReload refreshes your browser after a change.
jekyll serve --incremental
# Incremental will perform a partial build in order to reduce regeneration time.
jekyll serve --detach
# => Same as `jekyll serve` but will detach from the current terminal.
# If you need to kill the server, you can `kill -9 1234` where "1234" is the PID.
# If you cannot find the PID, then do, `ps aux | grep jekyll` and kill the instance.
```
<div class="note tip">
<h5>Livereload</h5>
<p>If you want to enable Livereload, you can enable the <a href="https://github.com/RobertDeRose/jekyll-livereload">jekyll-livereload</a> plugin in a <a href="../configuration/#build-command-options">development config file</a>.</p>
</div>
```sh
jekyll serve --no-watch