2025-03-14 21:59:59 -06:00
|
|
|
# zola
|
|
|
|
|
|
|
|
|
|
> A static site generator in a single binary with everything built-in.
|
|
|
|
|
> More information: <https://www.getzola.org/documentation/getting-started/cli-usage/>.
|
|
|
|
|
|
|
|
|
|
- Create the directory structure used by Zola at the given directory:
|
|
|
|
|
|
|
|
|
|
`zola init {{my_site}}`
|
|
|
|
|
|
|
|
|
|
- Build the whole site in the `public` directory after deleting it:
|
|
|
|
|
|
|
|
|
|
`zola build`
|
|
|
|
|
|
|
|
|
|
- Build the whole site into a different directory:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`zola build --output-dir {{path/to/output_directory}}/`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Build and serve the site using a local server (default is `127.0.0.1:1111`):
|
|
|
|
|
|
|
|
|
|
`zola serve`
|
|
|
|
|
|
|
|
|
|
- Build all pages just like the build command would, but without writing any of the results to disk:
|
|
|
|
|
|
|
|
|
|
`zola check`
|