Summary | Writes the generated content to a specified directory |
---|---|
Short name | file_system |
Provided by bundle | built-in |
API doc | Webgen::Destination::FileSystem |
Description
This destination extension writes the nodes to a file system directory.
Usage
When using this destination, the first parameter is the directory under which the nodes should be written. This directory is taken relative to the website directory.
This is the default destination used when creating a new webgen website.
Examples
The used destination extension can be specified via the destination configuration option, so each of the examples below can directly be used in the configuration file.
-
All nodes are written to the
out
directory under the website directory (the default configuration):destination: [file_system, out]
-
Writing the nodes to an absolute directory:
destination: [file_system, /var/www/documentation]