Getting StartedStatic Site GenerationVisual EditorEdit via CLIComponentsWebhooks

Static Site Generation

The afia ssg command will generate a static site directory containing your site's pages.

First, create a new Afia workspace:

mkdir my-workspace
cd my-workspace
afia init

Next, generate a static site directory.

afia ssg --website basic

The above command outputs a static site at ./afia-out/ssg/basic.

Any static site server can be used to view the site. For instance, using python3's server:

# Serves the static site at http://localhost:9000
python3 -m http.server -d ./afia-out/ssg/basic 9000