15138: Include logic to support building multiple versions of our documentation.
[arvados.git] / doc / _includes / _navbar_left.liquid
1 {% comment %}
2 Copyright (C) The Arvados Authors. All rights reserved.
3
4 SPDX-License-Identifier: CC-BY-SA-3.0
5 {% endcomment %}
6
7 <div class="col-sm-3">
8   <div class="well">
9     <ol class="nav nav-list">
10       {% for section in site.navbar[page.navsection] %}
11       {% for entry in section %}
12       <li><span class="nav-header">{{ entry[0] }}</span>
13         <ol class="nav nav-list">
14           {% for item in entry[1] %}        
15           {% assign p = site.pages[item] %}
16           <li {% if p.url == page.url %} class="active activesubnav" {% elsif p.title == page.subnavsection %} class="activesubnav" {% endif %}>
17             <a href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a></li>
18           {% endfor %}
19         </ol>
20         {% endfor %}
21         {% endfor %}
22     </ol>
23   </div>
24 </div>