0.1.2 • Published 11 years ago

doxbars v0.1.2

Weekly downloads
7
License
-
Repository
github
Last release
11 years ago

Doxbars

Generates javascript api documentation.

Usage

$ doxbars <api_file> <handlebars_template> --title 'My awesome lib name!' > output.html

Template sample

<!DOCTYPE html>
<html>
    <body>
        <h1>{{ title }}</h1>
        {{#api }}
        <section>
            <h1>{{ ctx.string }}</h1>
            {{#tags}}
            <dl>
                <dt>{{ type }} {{ types }}<dt>
                {{#if description }}<dd>{{ description }}</dd>{{/if }}
            </dl>
            {{/tags}}
            {{{ description.full }}}
            <pre>
                <code>{{{ code }}}</code>
            </pre>
        </section>
        {{/api }}
    </body>
</html>
0.1.2

11 years ago

0.1.1

11 years ago