Handlebars templates guide

If you are unfamiliar with handlebars, we recommend taking a look at its definition.

Basically there are minimal implications on which templates are needed for a valid and successful generation of documentations:

Apart from these mandatory templates, any other template in root of input directory will be compiled too. Such pages are referred to as meta pages.

The context of templates being compiled follows the generic rules defined in templating overview, for detailed and more information we recommend taking a look at default templates provided alongside the code.

Templates directory structure

The templates’ input directory (currently fixed to default templates see issue #3) shall follow these rules:

Lets say this is the given template input dir:

    .
    ├── _helpers
    │   └── package_to_link.js
    ├── _partials
    │   ├── base.hbs
    │   ├── footer.hbs
    │   ├── header.hbs
    ├── class.hbs
    ├── images
    ├── index.hbs
    ├── package.hbs
    ├── packages.hbs
    └── styles
        ├── bootstrap-theme.css
        ├── fonts
        │   └── glyphicons-halflings-regular.ttf
        ├── js
        │   └── bootstrap.js
        └── custom.css

In this case the output will have following structure when applied to the code base of this same project for document generation (for abbreviation, some of the docs’ HTML files have been removed):

    .
    ├── com
    │   ├── google
    │   │   └── doclava
    │   │       ├── AnnotationInstanceInfo
    │   │       │   └── index.html
    │   │       ├── AnnotationValueInfo
    │   │       │   └── index.html
    │   │       │...
    │   │       │
    │   │       ├── apicheck
    │   │       │   ├── AbstractMethodInfo
    │   │       │   │   └── index.html
    │   │       │   ├── ApiCheck
    │   │       │   │   └── index.html
    │   │       │   └── index.html
    │   │       │...
    │   │       │
    │   │       └── index.html
    │   └── mohamnag
    │       └── doclavax
    │           ├── Doclavax
    │           │   └── index.html
    │           ├── HandlebarsTemplateEngine
    │           │   └── index.html
    │           │...
    │           │
    │           └── index.html
    ├── images
    ├── index.html
    ├── packages
    │   └── index.html
    └── styles
        ├── bootstrap-theme.css
        ├── fonts
        │   └── glyphicons-halflings-regular.ttf
        ├── js
        │   └── bootstrap.js
        └── custom.css