<% wrap_layout :inner do %>
  <% content_for :sidebar do %>
    <h4><a href="/docs/registry/index.html">Terraform Registry</a></h4>

    <ul class="nav docs-sidenav">
      <li>
        <a href="#">Providers</a>
        <ul class="nav nav-auto-expand">
          <li<%= sidebar_current("docs-registry-provider-docs") %>>
            <a href="/docs/registry/providers/docs.html">Provider Documentation</a>
          </li>
        </ul>
      </li>

      <li>
        <a href="#">Modules</a>
        <ul class="nav nav-auto-expand">
          <li<%= sidebar_current("docs-registry-use") %>>
            <a href="/docs/registry/modules/use.html">Finding and Using Modules</a>
          </li>

          <li<%= sidebar_current("docs-registry-publish") %>>
            <a href="/docs/registry/modules/publish.html">Publishing Modules</a>
          </li>

          <li<%= sidebar_current("docs-registry-verified") %>>
            <a href="/docs/registry/modules/verified.html">Verified Modules</a>
          </li>
        </ul>
      </li>

      <li<%= sidebar_current("docs-registry-private") %>>
        <a href="/docs/registry/private.html">Private Registries</a>
      </li>

      <li<%= sidebar_current("docs-registry-api") %>>
        <a href="/docs/registry/api.html">Registry API</a>
      </li>

      <li<%= sidebar_current("docs-registry-support") %>>
        <a href="/docs/registry/support.html">Registry Support</a>
      </li>
    </ul>

    <%= partial("layouts/otherdocs", :locals => { :skip => "Terraform Registry" }) %>
  <% end %>

  <%= yield %>
<% end %>
