<% 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-acl") %>>
            <a href="/docs/commands/acl.html">acl</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-acl-bootstrap") %>>
                <a href="/docs/commands/acl/acl-bootstrap.html">bootstrap</a>
              </li>
              <li<%= sidebar_current("docs-commands-acl-policy") %>>
                <a href="/docs/commands/acl/acl-policy.html">policy</a>
              </li>
              <li<%= sidebar_current("docs-commands-acl-set-agent-token") %>>
                <a href="/docs/commands/acl/acl-set-agent-token.html">set-agent-token</a>
              </li>
              <li<%= sidebar_current("docs-commands-acl-token") %>>
                <a href="/docs/commands/acl/acl-token.html">token</a>
              </li>
              <li<%= sidebar_current("docs-commands-acl-translate-rules") %>>
                <a href="/docs/commands/acl/acl-translate-rules.html">translate-rules</a>
              </li>
            </ul>
          </li>
          <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-connect") %>>
            <a href="/docs/commands/connect.html">connect</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-connect-ca") %>>
                <a href="/docs/commands/connect/ca.html">ca</a>
              </li>
              <li<%= sidebar_current("docs-commands-connect-proxy") %>>
                <a href="/docs/commands/connect/proxy.html">proxy</a>
              </li>
              <li<%= sidebar_current("docs-commands-connect-envoy") %>>
                <a href="/docs/commands/connect/envoy.html">envoy</a>
              </li>
            </ul>
          </li>
          <li<%= sidebar_current("docs-commands-debug") %>>
            <a href="/docs/commands/debug.html">debug</a>
          </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-intention") %>>
            <a href="/docs/commands/intention.html">intention</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-intention-check") %>>
                <a href="/docs/commands/intention/check.html">check</a>
              </li>
              <li<%= sidebar_current("docs-commands-intention-create") %>>
                <a href="/docs/commands/intention/create.html">create</a>
              </li>
              <li<%= sidebar_current("docs-commands-intention-delete") %>>
                <a href="/docs/commands/intention/delete.html">delete</a>
              </li>
              <li<%= sidebar_current("docs-commands-intention-get") %>>
                <a href="/docs/commands/intention/get.html">get</a>
              </li>
              <li<%= sidebar_current("docs-commands-intention-match") %>>
                <a href="/docs/commands/intention/match.html">match</a>
              </li>
            </ul>
          </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-license") %>>
            <a href="/docs/commands/license.html">license</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-services") %>>
            <a href="/docs/commands/services.html">services</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-commands-services-register") %>>
                <a href="/docs/commands/services/register.html">register</a>
              </li>
              <li<%= sidebar_current("docs-commands-services-deregister") %>>
                <a href="/docs/commands/services/deregister.html">deregister</a>
              </li>
            </ul>
          </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-cloud-auto-join") %>>
            <a href="/docs/agent/cloud-auto-join.html">Cloud Auto-join</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>

      <li<%= sidebar_current("docs-connect") %>>
        <a href="/docs/connect/index.html">Connect</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-connect-config") %>>
            <a href="/docs/connect/configuration.html">Configuration</a>
          </li>
          <li<%= sidebar_current("docs-connect-proxies") %>>
            <a href="/docs/connect/proxies.html">Proxies</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-connect-proxies-sidecar-service") %>>
                <a href="/docs/connect/proxies/sidecar-service.html">Sidecar Service Registration</a>
              </li>
              <li<%= sidebar_current("docs-connect-proxies-envoy") %>>
                <a href="/docs/connect/proxies/envoy.html">Envoy</a>
              </li>
              </li>
              <li<%= sidebar_current("docs-connect-proxies-integrate") %>>
                <a href="/docs/connect/proxies/integrate.html">Proxy Integration</a>
              </li>
            </ul>
          </li>
          <li<%= sidebar_current("docs-connect-intentions") %>>
            <a href="/docs/connect/intentions.html">Intentions</a>
          </li>
          <li<%= sidebar_current("docs-connect-ca") %>>
            <a href="/docs/connect/ca.html">Certificate Management</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-connect-ca-consul") %>>
                <a href="/docs/connect/ca/consul.html">Built-In CA</a>
              </li>
              <li<%= sidebar_current("docs-connect-ca-vault") %>>
                <a href="/docs/connect/ca/vault.html">Vault</a>
              </li>
            </ul>
          </li>
          <li<%= sidebar_current("docs-connect-native") %>>
            <a href="/docs/connect/native.html">Native App Integration</a>
            <ul class="nav">
              <li<%= sidebar_current("docs-connect-native-go") %>>
                <a href="/docs/connect/native/go.html">Go Integration</a>
              </li>
            </ul>
          </li>
          <li<%= sidebar_current("docs-connect-dev") %>>
            <a href="/docs/connect/dev.html">Develop and Debug</a>
          </li>
          <li<%= sidebar_current("docs-connect-platform-nomad") %>>
            <a href="/docs/connect/platform/nomad.html">Nomad</a>
          </li>
          <li<%= sidebar_current("docs-connect-platform-k8s") %>>
            <a href="/docs/platform/k8s/connect.html">Kubernetes</a>
          </li>
          <li<%= sidebar_current("docs-connect-security") %>>
            <a href="/docs/connect/security.html">Security</a>
          </li>
        </ul>
      </li>

      <li<%= sidebar_current("docs-platform-k8s") %>>
        <a href="/docs/platform/k8s/index.html">Kubernetes</a>
        <ul class="nav">
          <li<%= sidebar_current("docs-platform-k8s-run") %>>
            <a href="/docs/platform/k8s/run.html">Running Consul</a>
          </li>
          <li<%= sidebar_current("docs-platform-k8s-helm") %>>
            <a href="/docs/platform/k8s/helm.html">Helm Chart</a>
          </li>
          <li<%= sidebar_current("docs-platform-k8s-ooc-nodes") %>>
            <a href="/docs/platform/k8s/out-of-cluster-nodes.html">Out-of-Cluster Nodes</a>
          </li>
          <li<%= sidebar_current("docs-platform-k8s-dns") %>>
            <a href="/docs/platform/k8s/dns.html">Consul DNS</a>
          </li>
          <li<%= sidebar_current("docs-platform-k8s-service-sync") %>>
            <a href="/docs/platform/k8s/service-sync.html">Service Sync</a>
          </li>
          <li<%= sidebar_current("docs-platform-k8s-connect") %>>
            <a href="/docs/platform/k8s/connect.html">Connect Sidecar</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>
            <ul class="nav">
              <li<%= sidebar_current("docs-guides-acl-legacy") %>>
                <a href="/docs/guides/acl-legacy.html">Legacy</a>
              </li>
              <li<%= sidebar_current("docs-guides-acl-migrate-tokens") %>>
                <a href="/docs/guides/acl-migrate-tokens.html">Token Migration</a>
              </li>
            </ul>
          </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-connect-production") %>>
            <a href="/docs/guides/connect-production.html">Connect in Production</a>
          </li>
          <li<%= sidebar_current("docs-guides-connect-envoy") %>>
            <a href="/docs/guides/connect-envoy.html">Connect with Envoy</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-creating-certificates") %>>
            <a href="/docs/guides/creating-certificates.html">Creating Certificates</a>
          </li>
          <li<%= sidebar_current("docs-guides-deployment-guide") %>>
            <a href="/docs/guides/deployment-guide.html">Deployment Guide</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-monitoring-telegraf") %>>
            <a href="/docs/guides/monitoring-telegraf.html">Monitoring Consul with Telegraf</a>
          </li>
          <li<%= sidebar_current("docs-guides-segments") %>>
            <a href="/docs/guides/segments.html">Network Segments</a>
          </li>
          <li<%= sidebar_current("docs-guides-outage") %>>
            <a href="/docs/guides/outage.html">Outage Recovery</a>
          </li>
          <li<%= sidebar_current("docs-guides-reference-architecture") %>>
            <a href="/docs/guides/deployment.html">Reference Architecture</a>
          </li>
          <li<%= sidebar_current("docs-guides-semaphore") %>>
            <a href="/docs/guides/semaphore.html">Semaphore</a>
          </li>
          <li<%= sidebar_current("docs-guides-sentinel") %>>
            <a href="/docs/guides/sentinel.html">Sentinel</a>
          </li>
          <li<%= sidebar_current("docs-guides-performance") %>>
            <a href="/docs/guides/performance.html">Server Performance</a>
          </li>
          <li<%= sidebar_current("docs-guides-windows-service") %>>
            <a href="/docs/guides/windows-guide.html">Windows (Service)</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-connect-multi-datacenter") %>>
            <a href="/docs/enterprise/connect-multi-datacenter/index.html">Connect Multi-Datacenter</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 %>
