Configuration File Format

Introduction

To follow the configuration file, you need to think of your Web site as a tree structure. Typically, the site starts at a home page or some sort of index, then from there you can select a category, then refine the topic you're interested in by selecting specific branches further into the tree structure.

The configuration file for a site could look like this:

type=page file=index.shtml caption=Home
	type=box_title caption="First section"
	type=page file=f1.shtml caption="Entry A"
	type=page file=f2.shtml caption="Entry B"
	type=page file=f3.shtml caption="Entry C"
        	type=page file=f3-1.shtml caption="Entry C1"
        	type=page file=f3-2.shtml caption="Entry C2"
        	type=page file=f3-3.shtml caption="Entry C3"
	type=page file=f4.shtml caption="Entry D"
	type=box_title caption="Second section"
	type=page file=f2.shtml caption="Entry B"
	type=page file=f3.shtml caption="Entry C"
	type=link caption="Go somewhere else" file=f3-2.shtml
    

Each line represents an entry in the tree. Indentation indicates the relationship between pages: the user will need to enter f3.shtml to see f3-1.shtml, f3-2.shtml and f3-3.shtml. Similarly, the tree structure introduces a notion of locality: only the main headlines above the current page will be displayed, much like in crumbtrail navigation. For example, a user currently viewing f3-2.shtml will be presented with a link to index.shtml, f3.shtml and all the f3-*.shtml pages.

Specification

The levels of indentation must be marked using actual tabulation characters. Each line represents a link in the tree, usually this corresponds to a page in the site. The lines are composed of key/value pairs, where the key must be just one word (composed of letters and/or digits) and the value can be anything, but must be surrounded by double quotes if it contains spaces.

The following keys are available: