server now includes drafts by default
This commit is contained in:
parent
bdd7558999
commit
8d17572d12
3 changed files with 15 additions and 9 deletions
10
README.md
10
README.md
|
@ -37,6 +37,7 @@ For an example of a website built with zona, please see
|
|||
- [Markdown Footer](#markdown-footer)
|
||||
- [Internal Link Resolution](#internal-link-resolution)
|
||||
- [Syntax Highlighting](#syntax-highlighting)
|
||||
- [Markdown Extensions](#markdown-extensions)
|
||||
- [Image Labels](#image-labels)
|
||||
- [Frontmatter](#frontmatter)
|
||||
- [Post List](#post-list)
|
||||
|
@ -125,9 +126,12 @@ support from the browser — this is why the feature is optional.
|
|||
To start a preview server, use `zona serve`. You can specify the root
|
||||
directory as its first argument. Use the `--host` to specify a host name
|
||||
(`localhost` by default) and `--port/-p` to specify a port (default:
|
||||
`8000`). The `--output/-o` and `--draft/-d` options from `zona build` are
|
||||
also supported. Finally, the `--no-live-reload/-n` disables the live
|
||||
browser reloading. _Automatic site rebuilds are not disabled._
|
||||
`8000`). The `--no-live-reload/-n` disables the live browser reloading
|
||||
(_automatic site rebuilds are not disabled_).
|
||||
|
||||
Drafts are enabled by default in live preview. Use `--final/-f` to disable
|
||||
them. By default, the build outputs to a temporary directory. Use
|
||||
`-o/--output` to override this.
|
||||
|
||||
**Note**: if the live preview isn't working as expected, try restarting
|
||||
the server. If you change the configuration or any templates, the server
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue