Visual Sitemap

How to Write the Sitemap Definition

Review example.json and quick_start.json for examples of actual schemas.

The schema is very simple, a nested group of objects, each following this pattern:

{
    "title": "",
    "feature": "",
    "more": "",
    "type": "",
    "path": "",
    "sections": []
}

The feature key can be used to link an object to an external feature UUID, such as with Taskcamp.

Top-Level

The top-level node only, may not have these keys:

The top-level node only, takes the following additional keys:

Here is a stub to start your file:

{
    "timezone": "",
    "baseUrl": "",
    "title": "",
    "branding_color": "",
    "subtitle": "",
    "description": "",
    "footer": "",
    "more": "",
    "sections": []
}

Nesting

The sections is where you nest the nodes, like this:

{
    "sections": [
        {
            "title": "",
            "more": "",
            "type": "",
            "path": "",
            "sections": [
                {
                    "title": "",
                    "more": "",
                    "type": "",
                    "path": "",
                    "sections": []
                }
            ]
        },
        {
            "title": "",
            "more": "",
            "type": "",
            "path": "",
            "sections": []
        }
    ]
}

Types

The following are the valid section types. You may omit the type and page is implied, which is the default type.

Path

Path should be a relative link and begin with /. Not all resources should use path. Use URL placeholders, e.g. user/{user}.

More (Info)

Optional, URL hyperlink to anything that provides more info for the section, a Trello card, website, documentation, etc. This makes the title clickable. You may use tokens in this field, the following are available:

token description
{{ url }} An absolute URL generated using the baseUrl and the path of the section
{{ path }} The path of the section
{{ base }} The value of the baseUrl configuration variable