<% wrap_layout :inner do %>
  <% content_for :sidebar do %>
    <ul class="nav docs-sidenav">
      <li<%= sidebar_current('docs-install-install') %>>
        <a href="/docs/install/index.html">Installing Consul</a>
      </li>

      <li<%= sidebar_current("docs-upgrading") %>>
        <a href="/docs/upgrading.html">Upgrading</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-upgrading-upgrading") %>>
            <a href="/docs/upgrading.html">Upgrading Consul</a>
          </li>
          <li<%= sidebar_current("docs-upgrading-compat") %>>
            <a href="/docs/compatibility.html">Compatibility Promise</a>
          </li>
          <li<%= sidebar_current("docs-upgrading-specific") %>>
            <a href="/docs/upgrade-specific.html">Specific Version Details</a>
          </li>
        </ul>
      </li>

      <li<%= sidebar_current("docs-internals") %>>
        <a href="/docs/internals/index.html">Internals</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-internals-architecture") %>>
            <a href="/docs/internals/architecture.html">Architecture</a>
          </li>
          <li<%= sidebar_current("docs-internals-consensus") %>>
            <a href="/docs/internals/consensus.html">Consensus Protocol</a>
          </li>
          <li<%= sidebar_current("docs-internals-gossip") %>>
            <a href="/docs/internals/gossip.html">Gossip Protocol</a>
          </li>
          <li<%= sidebar_current("docs-internals-coordinates") %>>
            <a href="/docs/internals/coordinates.html">Network Coordinates</a>
          </li>
          <li<%= sidebar_current("docs-internals-sessions") %>>
            <a href="/docs/internals/sessions.html">Sessions</a>
          </li>
          <li<%= sidebar_current("docs-internals-anti-entropy") %>>
            <a href="/docs/internals/anti-entropy.html">Anti-Entropy</a>
          </li>
          <li<%= sidebar_current("docs-internals-security") %>>
            <a href="/docs/internals/security.html">Security Model</a>
          </li>
          <li<%= sidebar_current("docs-internals-jepsen") %>>
            <a href="/docs/internals/jepsen.html">Jepsen Testing</a>
          </li>
        </ul>
      </li>

      <li<%= sidebar_current("docs-commands") %>>
        <a href="/docs/commands/index.html">Commands (CLI)</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-commands-agent") %>>
            <a href="/docs/commands/agent.html">agent</a>
          </li>
          <li<%= sidebar_current("docs-commands-catalog") %>>
            <a href="/docs/commands/catalog.html">catalog</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-catalog-datacenters") %>>
                <a href="/docs/commands/catalog/datacenters.html">datacenters</a>
              </li>
              <li<%= sidebar_current("docs-commands-catalog-nodes") %>>
                <a href="/docs/commands/catalog/nodes.html">nodes</a>
              </li>
              <li<%= sidebar_current("docs-commands-catalog-services") %>>
                <a href="/docs/commands/catalog/services.html">services</a>
              </li>
            </ul>
          </li>
          <li<%= sidebar_current("docs-commands-event") %>>
            <a href="/docs/commands/event.html">event</a>
          </li>
          <li<%= sidebar_current("docs-commands-exec") %>>
            <a href="/docs/commands/exec.html">exec</a>
          </li>
          <li<%= sidebar_current("docs-commands-forceleave") %>>
            <a href="/docs/commands/force-leave.html">force-leave</a>
          </li>
          <li<%= sidebar_current("docs-commands-info") %>>
            <a href="/docs/commands/info.html">info</a>
          </li>
          <li<%= sidebar_current("docs-commands-join") %>>
            <a href="/docs/commands/join.html">join</a>
          </li>
          <li<%= sidebar_current("docs-commands-keygen") %>>
            <a href="/docs/commands/keygen.html">keygen</a>
          </li>
          <li<%= sidebar_current("docs-commands-keyring") %>>
            <a href="/docs/commands/keyring.html">keyring</a>
          </li>
          <li<%= sidebar_current("docs-commands-kv") %>>
            <a href="/docs/commands/kv.html">kv</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-kv-delete") %>>
                <a href="/docs/commands/kv/delete.html">delete</a>
              </li>
              <li<%= sidebar_current("docs-commands-kv-export") %>>
                <a href="/docs/commands/kv/export.html">export</a>
              </li>
              <li<%= sidebar_current("docs-commands-kv-get") %>>
                <a href="/docs/commands/kv/get.html">get</a>
              </li>
              <li<%= sidebar_current("docs-commands-kv-import") %>>
                <a href="/docs/commands/kv/import.html">import</a>
              </li>
              <li<%= sidebar_current("docs-commands-kv-put") %>>
                <a href="/docs/commands/kv/put.html">put</a>
              </li>
            </ul>
          </li>

          <li<%= sidebar_current("docs-commands-leave") %>>
            <a href="/docs/commands/leave.html">leave</a>
          </li>
          <li<%= sidebar_current("docs-commands-lock") %>>
            <a href="/docs/commands/lock.html">lock</a>
          </li>
          <li<%= sidebar_current("docs-commands-maint") %>>
            <a href="/docs/commands/maint.html">maint</a>
          </li>
          <li<%= sidebar_current("docs-commands-members") %>>
            <a href="/docs/commands/members.html">members</a>
          </li>
          <li<%= sidebar_current("docs-commands-monitor") %>>
            <a href="/docs/commands/monitor.html">monitor</a>
          </li>

          <li<%= sidebar_current("docs-commands-operator") %>>
            <a href="/docs/commands/operator.html">operator</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-operator-area") %>>
                <a href="/docs/commands/operator/area.html">area</a>
              </li>
              <li<%= sidebar_current("docs-commands-operator-autopilot") %>>
                <a href="/docs/commands/operator/autopilot.html">autopilot</a>
              </li>
              <li<%= sidebar_current("docs-commands-operator-raft") %>>
                <a href="/docs/commands/operator/raft.html">raft</a>
              </li>
            </ul>
          </li>

          <li<%= sidebar_current("docs-commands-reload") %>>
            <a href="/docs/commands/reload.html">reload</a>
          </li>
          <li<%= sidebar_current("docs-commands-rtt") %>>
            <a href="/docs/commands/rtt.html">rtt</a>
          </li>

          <li<%= sidebar_current("docs-commands-snapshot") %>>
            <a href="/docs/commands/snapshot.html">snapshot</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-snapshot-agent") %>>
                <a href="/docs/commands/snapshot/agent.html">agent</a>
              </li>
              <li<%= sidebar_current("docs-commands-snapshot-inspect") %>>
                <a href="/docs/commands/snapshot/inspect.html">inspect</a>
              </li>
              <li<%= sidebar_current("docs-commands-snapshot-restore") %>>
                <a href="/docs/commands/snapshot/restore.html">restore</a>
              </li>
              <li<%= sidebar_current("docs-commands-snapshot-save") %>>
                <a href="/docs/commands/snapshot/save.html">save</a>
              </li>
            </ul>
          </li>

          <li<%= sidebar_current("docs-commands-validate") %>>
            <a href="/docs/commands/validate.html">validate</a>
          </li>
          <li<%= sidebar_current("docs-commands-version") %>>
            <a href="/docs/commands/version.html">version</a>
          </li>
          <li<%= sidebar_current("docs-commands-watch") %>>
            <a href="/docs/commands/watch.html">watch</a>
          </li>
        </ul>
      </li>

      <li<%= sidebar_current("docs-agent") %>>
        <a href="/docs/agent/basics.html">Agent</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-agent-running") %>>
            <a href="/docs/agent/basics.html">Running and Stopping</a>
          </li>
          <li<%= sidebar_current("docs-agent-dns") %>>
            <a href="/docs/agent/dns.html">DNS Interface</a>
          </li>
          <li<%= sidebar_current("docs-agent-config") %>>
            <a href="/docs/agent/options.html">Configuration</a>
          </li>
          <li<%= sidebar_current("docs-agent-services") %>>
            <a href="/docs/agent/services.html">Service Definitions</a>
          </li>
          <li<%= sidebar_current("docs-agent-checks") %>>
            <a href="/docs/agent/checks.html">Check Definitions</a>
          </li>
          <li<%= sidebar_current("docs-agent-encryption") %>>
            <a href="/docs/agent/encryption.html">Encryption</a>
          </li>
          <li<%= sidebar_current("docs-agent-telemetry") %>>
            <a href="/docs/agent/telemetry.html">Telemetry</a>
          </li>
          <li<%= sidebar_current("docs-agent-watches") %>>
            <a href="/docs/agent/watches.html">Watches</a>
          </li>
        </ul>
      </li>

      <hr>

      <li<%= sidebar_current("docs-guides") %>>
        <a href="/docs/guides/index.html">Guides</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-guides-acl") %>>
            <a href="/docs/guides/acl.html">ACLs</a>
          </li>
          <li<%= sidebar_current("docs-guides-servers") %>>
            <a href="/docs/guides/servers.html">Adding/Removing Servers</a>
          </li>
          <li<%= sidebar_current("docs-guides-autopilot") %>>
            <a href="/docs/guides/autopilot.html">Autopilot</a>
          </li>
          <li<%= sidebar_current("docs-guides-bootstrapping") %>>
            <a href="/docs/guides/bootstrapping.html">Bootstrapping</a>
          </li>
          <li<%= sidebar_current("docs-guides-consul-containers") %>>
            <a href="/docs/guides/consul-containers.html">Consul with Containers</a>
          </li>
          <li<%= sidebar_current("docs-guides-dns-cache") %>>
            <a href="/docs/guides/dns-cache.html">DNS Caching</a>
          </li>
          <li<%= sidebar_current("docs-guides-forwarding") %>>
            <a href="/docs/guides/forwarding.html">DNS Forwarding</a>
          </li>
          <li<%= sidebar_current("docs-guides-external") %>>
            <a href="/docs/guides/external.html">External Services</a>
          </li>
          <li<%= sidebar_current("docs-guides-areas") %>>
            <a href="/docs/guides/areas.html">Federation (Advanced)</a>
          </li>
          <li<%= sidebar_current("docs-guides-datacenters") %>>
            <a href="/docs/guides/datacenters.html">Federation (Basic)</a>
          </li>
          <li<%= sidebar_current("docs-guides-geo-failover") %>>
            <a href="/docs/guides/geo-failover.html">Geo Failover</a>
          </li>
          <li<%= sidebar_current("docs-guides-leader") %>>
            <a href="/docs/guides/leader-election.html">Leader Election</a>
          </li>
          <li<%= sidebar_current("docs-guides-segments") %>>
            <a href="/docs/guides/segments.html">Network Segments</a>
          </li>
          <li<%= sidebar_current("docs-guides-sentinel") %>>
            <a href="/docs/guides/sentinel.html">Sentinel</a>
          </li>
          <li<%= sidebar_current("docs-guides-outage") %>>
            <a href="/docs/guides/outage.html">Outage Recovery</a>
          </li>
          <li<%= sidebar_current("docs-guides-semaphore") %>>
            <a href="/docs/guides/semaphore.html">Semaphore</a>
          </li>
          <li<%= sidebar_current("docs-guides-performance") %>>
            <a href="/docs/guides/performance.html">Server Performance</a>
          </li>
        </ul>
      </li>

      <li<%= sidebar_current("docs-faq") %>>
        <a href="/docs/faq.html">FAQ</a>
      </li>

      <hr>

      <li<%= sidebar_current("docs-enterprise") %>>
        <a href="/docs/enterprise/index.html">Consul Enterprise</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-enterprise-backups") %>>
            <a href="/docs/enterprise/backups/index.html">Automated Backups</a>
          </li>
          <li<%= sidebar_current("docs-enterprise-upgrades") %>>
            <a href="/docs/enterprise/upgrades/index.html">Automated Upgrades</a>
          </li>
          <li<%= sidebar_current("docs-enterprise-read-scale") %>>
            <a href="/docs/enterprise/read-scale/index.html">Enhanced Read Scalability</a>
          </li>
          <li<%= sidebar_current("docs-enterprise-redundancy") %>>
            <a href="/docs/enterprise/redundancy/index.html">Redundancy Zones</a>
          </li>
          <li<%= sidebar_current("docs-enterprise-federation") %>>
            <a href="/docs/enterprise/federation/index.html">Advanced Federation</a>
          </li>
          <li<%= sidebar_current("docs-enterprise-network-segments") %>>
            <a href="/docs/enterprise/network-segments/index.html">Network Segments</a>
          </li>
          <li<%= sidebar_current("docs-enterprise-sentinel") %>>
            <a href="/docs/enterprise/sentinel/index.html">Sentinel</a>
          </li>
        </ul>
      </li>

    </ul>
  <% end %>

  <%= yield %>
<% end %>
