zola:tldr:5c397
zola: Build the whole site in the `public` directory after deleting it.
$ zola build
try on your machine
The command "zola build" is used to build a static website using the Zola static site generator. Zola is a fast and flexible static website generator written in Rust.
When you run the "zola build" command, Zola will read the configuration file (usually named "config.toml") in the root directory of your website project and generate the output HTML, CSS, and other necessary files.
Here's what happens when you run the "zola build" command:
- Zola reads the configuration file to determine the settings and structure of your website.
- It scans the content directory (by default, "content/") and processes the Markdown files, applying templates and rendering them into HTML.
- It copies static files (such as images, CSS, and JavaScript) from the static directory (by default, "static/") to the output directory.
- It generates the website's pages, index files, and other necessary files based on the defined structure and templates.
- The generated files are outputted to the output directory (by default, "public/").
Once the build process is complete, you will have a fully-built static website ready to be deployed using any web server or hosting platform.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.