Nicolas Méloni
Maître de conférences en informatique, Université de Toulon

Quick-start

The easiest way to create a new website after installing SWAG is to make an empty directory and use the command

$ swag --quick-start

This will create a basic setup on which you can build upon.

$ ls
config.ini  content

The .ini file contains a series a fields that can be easily modified. The content directory is where all your website data should be located. You can now run

$ swag --build

to build your website in the output directory. You can run a local server and open the localhost:8000/ address in a web browser to try it out. Python provides an easy way to open such a server:

$ python -m http.server --directory output