Configuration

zmarkgen reads either zmarkgen.zon or any file containing valid .zon-syntax specified by the -c flag.

Example

.{
    // The name of the output directory. Default: "generated".
    .out_dir = "my-epic-site"

    // The <meta charset=...> -tag to add to HTML header. Default: "utf-8".
    // Note that zmarkgen doesn't convert text encoding.
    //.charset =
    // ^ Note that fields can be omitted to use defaults

    // Use symlink to source files where applicable,
    // instead of copying to out_dir. Default: true.
    .symlink = false,

    // Add a stylesheet file and corresponding <link> -tag in the HTML header.
    // Default: null
    .stylesheet = "epic.css",

    // Suffix a site name to generated <title> tags, e.g. "Page 1 - Site Name".
    // Default: null
    .site_name = "My Epic Site",

    // The maximum number of characters in index short text previews.
    // Use 0 to disable preview snippets in the index page.
    .snippet_max_len = 50,
}

See also repository's configuration file.