{% extends "base.html" %}
{% from '_docsection.html' import docsection %}

{% block scripts %}
    {{ super() }}
    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.5/highlight.min.js"></script>
    <script>hljs.initHighlightingOnLoad();</script>
{% endblock %}

{% block desktop_navbar %}
    {{ super() }}
    <div class="content">
        <div class="container-fluid pull-left col-sm-6 head-zone">
            <div></div>
        </div>
        <!--<div class="container-fluid head-code">
            <ul class="nav navbar-nav head-in">
                <li>
                    <a href="#" class="active">curl</a>
                </li>
                <li>
                    <a href="#">Python</a>
                </li>
            </ul>
        </div>-->
    </div>
{% endblock %}

{% block content %}
<div>
    <!-- sidebar navbar - changes here need to reflect on mobile .navbar-collapse -->
    <div class="pull-left sidebar hidden-xs hidden-sm">
        <div class="list-group">
            <a href="/#" class="list-group-item">Getting Started</a>
            <h5 class="navheader">Users</h5>
            <a href="/#lookup_users" class="list-group-item">Lookup users</a>
            <a href="/#search_users" class="list-group-item">Search users</a>
            <a href="/#register_users" class="list-group-item">Register users</a>
            <a href="/#update_users" class="list-group-item">Update users</a>
            <a href="/#transfer_users" class="list-group-item">Transfer users</a>
            <a href="/#get_userbase" class="list-group-item">Get all users</a>
            <h5 class="navheader">Transactions</h5>
            <a href="/#broadcast_transaction" class="list-group-item">Broadcast transactions</a>
            <h5 class="navheader">Addresses</h5>
            <a href="/#unspent_outputs" class="list-group-item">Get unspent outputs</a>
            <a href="/#names_owned" class="list-group-item">Get names owned</a>
            <h5 class="navheader">Domains</h5>
            <a href="/#dkim_pubkey" class="list-group-item">Get DKIM public key</a>
            <h5 class="navheader">Stats</h5>
            <a href="/#user_stats" class="list-group-item">Get user stats</a>
        </div>
    </div><!--/sidebar navbar -->
    <div id="background" class="hidden-xs">
        <div class="background-actual"></div>
    </div>
    <div class="content">
        <div>
            <section>
                <div class="container pull-left col-sm-12 segment-wrapper" id="get-started">
                    <div class="container-fluid col-sm-6 segment-zone" style="border:none;">
                        <div class="seg-zone-wrap">
                            <h3>Getting Started</h3>
                            <p>
                                To start making calls to the Onename API, you'll need API credentials (an App ID and an App secret key).
                            </p>
                            <p>
                                <a href="/signup" class="btn btn-default" target="_self">Sign Up for an API Account</a>
                            </p>
                        </div>
                    </div>
                </div>
            </section>
        </div>
        {% for api_call in api_calls %}
            {{ docsection(api_call) }}
        {% endfor %}
    </div>

</div>
{% endblock %}
