Generating static pages

When you're ready to deploy your site, use the make static-pages command to generate static HTML files:

poet make static-pages <source_directory> --output-directory <output_dir> --public-path <base_url>

For example:

poet make static-pages . --output-directory ./public --public-path "https://example.com/"

Parameters

  • <source_directory> - the path to your Poet project (use . for the current directory). This directory must already exist.

  • --output-directory - where to write the generated HTML files. This directory will be created if it doesn't exist.

  • --public-path - the base URL path for your site

What gets generated

The command compiles your shortcodes, processes all markdown content, and outputs static HTML files along with your assets. The output folder is self-contained and can be deployed to any static hosting provider.