gluon_doc 0.18.3

The documentation generator for the gluon programming language
Documentation
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {{style ""}}
    <title>{{name}}</title>
</head>
<body>
    <header>
        <nav class="navbar navbar-dark bg-dark box-shadow">
            <ol class="breadcrumb">
                {{breadcrumbs name}}
            </ol>
        </nav>
    </header>

    <div class="row">

        <nav class="col-md-2 d-none d-md-block bg-light sidebar">
            <ul class="nav flex-column">
                {{#each sibling_modules}}
                <li class="nav-item">
                    <a class="nav-link active" href="{{sibling_link this}}">{{this}}</a>
                </li> 
                {{/each}}
            </ul>
        </nav>

        <main class="col-md-9 ml-sm-auto cl-lg-10 pt-3 px-4" role="main">
            <div class="row pb-3 mb-4 border-bottom">
                <h1 class="col-md-10">{{name}}</h1>
                {{#if @root.src_url}}
                <div class="col-md-2">
                    <a class="float-right" href="{{@root.src_url}}/{{symbol_to_path name}}.glu">[src]</a>
                </div>
                {{/if}}
            </div>

            {{#if sub_modules}}
            <h2>Modules</h2>

            <table class="table-sm">
            <tbody>
            {{#each sub_modules}}
                <tr>
                    <td>
                        <a href="{{module_link name}}">{{name}}</a>
                    </td>
                    <td valign="middle">
                        {{markdown_first_paragraph comment}}
                    </td>
                </tr>
            {{/each}}
            </table>
            {{/if}}

            <div class="docblock">{{markdown comment}}</div>

            {{#if record.types}}
            <h2 class="pb-3 mb-4 border-bottom"><a class="anchor field" id="Types" href="#Types">Types</a></h2>
            {{#each record.types}}

                <div class="row">
                    <div class="col-md-10">
                        <h4>
                            <pre>{{attributes}}type <a id="type.{{name}}" href="#type.{{name}}">{{name}}</a>{{#each args}} {{name}}{{/each}} = {{{type~}}}
                            </pre>
                        </h4>
                    </div>

                    {{#if @root.src_url}}
                    {{#if definition_line}}
                    <div class="col-md-2">
                        <a class="float-right" href="{{@root.src_url}}/{{symbol_to_path @root.name}}.glu#L{{definition_line}}">[src]</a>
                    </div>
                    {{/if}}
                    {{/if}}
                </div>
                <div class="docblock">{{markdown comment}}</div>

            {{/each}}
            {{/if}}

            {{#if record.values}}
            <h2 class="pb-3 mb-4 border-bottom"><a class="anchor field" id="Values" href="#Values">Values</a></h2>
            {{#each record.values}}

                <div class="row">
                    <div class="col-md-10">
                        <h4>
                        <pre>{{attributes}}let <a class="anchor field" id="value.{{name}}" href="#value.{{name}}">{{name}}</a>
                            {{~#each args~}}
                                {{~#if implicit}} ?{{name}}{{else}} {{name}}{{~/if~}}
                            {{~/each}} : {{{type~}}}
                        </pre>
                        </h4>
                    </div>

                    {{#if @root.src_url}}
                    {{#if definition_line}}
                    <div class="col-md-2">
                        <a class="float-right" href="{{@root.src_url}}/{{symbol_to_path @root.name}}.glu#L{{definition_line}}">[src]</a>
                    </div>
                    {{/if}}
                    {{/if}}
                </div>
                <div class="docblock">{{markdown comment}}</div>

            {{/each}}
            {{/if}}
        </main>

    </div>
</body>
</html>