Tonic Site Generator

The tonic site generator is meant to be use as a command line tool for generating the website of your web project.

The tonic-site-generator NodeJS executable expects a single argument which is the path to a JSON configuration file listing where to find the different components of your website.

The following JSON structure is an example of what a typical configuration file looks like:

{
    "output"    : "docs/www",
    "src"       : "lib",
    "api"       : "docs/api",
    "doc"       : "docs/guides",
    "news"      : "docs/news",
    "theme"     : "tonic",
    "icon"      : "docs/images/paper.png",
    "gitdir"    : "../../.git/modules/docs/www",
    "ctx"   : {
        "title": "Web Site Generator for Web projects",
        "vision": "Automagic Site Generation",
        "description": "Command line tool meant to simplify the generation of documentation threw a complete Web Site",
        "details": "",
        "license": "BSD 3 Clause Open Source",
        "company": "Kitware, Inc.",
        "companyURL": "http://www.kitware.com",
        "project": "tonic-site-generator",
        "baseurl" : "/tonic-site-generator",
        "url" : "",
        "repository": "Kitware/tonic-site-generator",
        "timezone": "America/Denver"
        "noTravis": "there is no travis build for this",
        "status": [
            {
                "subject":"whatever",
                "status": "done",
                "color": "orange"
            }
        ]
    }
}

The configuration file can be explained as follows where each path should be provided as relative to the configuration file.

Table of Contents #

tonic theme #

The Tonic theme is made to produce a standardized website with four sections:

The mandatory properties in the ctx are: