doxbars

0.1.2 • Public • Published

Doxbars

Generates javascript api documentation.

Usage:

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

Template:

<!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>

Readme

Keywords

none

Package Sidebar

Install

npm i doxbars

Weekly Downloads

3

Version

0.1.2

License

none

Last publish

Collaborators

  • jeanphix