Docs: Mention that the output directory will be deleted before build (#1472)
and serve
This commit is contained in:
parent
22fcae457a
commit
8ee6df030f
|
@ -31,7 +31,7 @@ $ zola init
|
|||
|
||||
## build
|
||||
|
||||
This will build the whole site in the `public` directory (if this directory already exists, it is overwritten).
|
||||
This will build the whole site in the `public` directory (if this directory already exists, it is deleted).
|
||||
|
||||
```bash
|
||||
$ zola build
|
||||
|
@ -46,7 +46,7 @@ $ zola build --base-url $DEPLOY_URL
|
|||
This is useful for example when you want to deploy previews of a site to a dynamic URL, such as Netlify
|
||||
deploy previews.
|
||||
|
||||
You can override the default output directory `public` by passing another value to the `output-dir` flag.
|
||||
You can override the default output directory `public` by passing another value to the `output-dir` flag (if this directory already exists, it is deleted).
|
||||
|
||||
```bash
|
||||
$ zola build --output-dir $DOCUMENT_ROOT
|
||||
|
@ -75,7 +75,7 @@ You can also specify different addresses for the interface and base_url using `-
|
|||
Use the `--open` flag to automatically open the locally hosted instance in your
|
||||
web browser.
|
||||
|
||||
Before starting, Zola will delete the `public` directory to start from a clean slate.
|
||||
Before starting, Zola will delete the output directory (by default `public` in project root) to start from a clean slate.
|
||||
|
||||
```bash
|
||||
$ zola serve
|
||||
|
|
Loading…
Reference in a new issue