<!doctype HTML>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{{ title }} API documentation</title>
    <meta name="generator" content="https://github.com/raml2html/raml2html {{ config.raml2HtmlVersion }}">
    <link rel="stylesheet" href="___ASSET_BASEPATH___/docs.css">
    <script>document.documentElement.setAttribute('class', 'has-js')</script>
  </head>

  <body data-component="scroll-spy">
    <header class="hero is-hidden-print">
      <div class="hero-body is-flex">
        <div>
          <h1 class="title is-1">{{ title }}</h1>
          {% if description %}
            <p class="subtitle has-priority-3">{{ description }}</p>
          {% endif %}
        </div>
        {% include "./settings.nunjucks" %}
      </div>
    </header>

    <div>
      <div class="columns">
        <div class="column is-nav is-narrow-tablet is-12-mobile is-hidden-print" data-component="menu">
          {% include "./sidebar.nunjucks" %}
        </div>
        <div class="column">
          <main class="main-content">
            {% from './content.nunjucks' import resource_group, type_detail %}
            {% from './util.nunjucks' import property_section, render_markdown %}

            <section id="__all_docs" class="section is-new-page" data-spy>
              <section id="__basic_information_docs" class="subsection" data-spy data-spy-parent="__all_docs">
                <h2 class="title is-2">Basic Information</h2>
                <h3 class="title is-3">Endpoint</h3>
                <pre><code class="value" data-hljs="disabled">{{ baseUri }}</code></pre>

                {{ property_section(null, baseUriParameters) }}
              </section>

              {% for chapter in documentation %}
                <section id="{{ chapter.uniqueId }}" class="subsection" data-spy data-spy-parent="__all_docs">
                  <h2 class="title is-2">{{ chapter.title }}</h2>
                  {{ render_markdown(chapter.content, headingBaseLevel=3) }}
                </section>
              {% endfor %}
            </section>

            <section id="__all_resources" class="section is-new-page" data-spy>
              <h2 class="title is-2">Resources</h2>
              {% for resource in resources %}
                {{ resource_group(resource) }}
              {% endfor %}
            </section>

            <section id="__all_types" class="section is-new-page" data-spy>
              <h2 class="title is-2">Type Reference</h2>
              {% for typeName, type in types | dictsort %}
                {{ type_detail(type) }}
              {% endfor %}
            </section>
          </main>
        </div>
      </div>
    </div>
    <script src="___ASSET_BASEPATH___/docs.js"></script>
  </body>
</html>
