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
|
## 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
|
```bash
|
||||||
$ zola build
|
$ 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
|
This is useful for example when you want to deploy previews of a site to a dynamic URL, such as Netlify
|
||||||
deploy previews.
|
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
|
```bash
|
||||||
$ zola build --output-dir $DOCUMENT_ROOT
|
$ 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
|
Use the `--open` flag to automatically open the locally hosted instance in your
|
||||||
web browser.
|
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
|
```bash
|
||||||
$ zola serve
|
$ zola serve
|
||||||
|
|
Loading…
Reference in a new issue