Building the Content

To build your content, invoke the build command on the configuration file:

  staticms build mysite.conf

If all went well, the specified targetdir should now contain the generated content. Otherwise, an error message is given.

The build command will only build those targets that need rebuilding. This will save time when updating a large collection of content. For this purpose, the plugins will create a dependency tree. If you want the complete collection to be rebuilt, you can specify the force option:

  # TODO

If you rebuild your site, StatiCMS can remove all files that are no longer in the set of generated files (not implemented at this time). This can be dangerous if your sourcedir and targetdir overlap: files from your sourcedir can be deleted! Therefore this options should be enabled in the configuration file as follows:

  # TODO