From 8ee6df030f1714a9f9fe488e9503a3d67821a93b Mon Sep 17 00:00:00 2001 From: Avinash Sonawane Date: Sun, 23 May 2021 11:53:25 +0000 Subject: [PATCH] Docs: Mention that the output directory will be deleted before build (#1472) and serve --- docs/content/documentation/getting-started/cli-usage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/content/documentation/getting-started/cli-usage.md b/docs/content/documentation/getting-started/cli-usage.md index 13f039ce..5c5d53be 100644 --- a/docs/content/documentation/getting-started/cli-usage.md +++ b/docs/content/documentation/getting-started/cli-usage.md @@ -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