1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/docs/theme/mkdocs/toc.html
O.S.Tezer 205e85da32 Fix for TOC "click/expand" & "scroll position" problem on mobile.
Fixes:

 - Click/expand
 - Scroll pos.
 - TOC table scroll-down arrow.
 - TOC title scrolls to top.

Docker-DCO-1.1-Signed-off-by: O.S. Tezer <ostezer@gmail.com> (github: ostezer)
2014-04-17 15:48:03 +03:00

13 lines
598 B
HTML

<div id="toc_table" class="bs-sidebar hidden-print" role="complementary">
{% if current_page.title != '**HIDDEN**' %}
<h2><a href="#">{{ current_page.title }} <b class="caret"></b></a></h2>
{% endif %}
<h3>TABLE OF CONTENTS</h3>
<ul id="toc_navigation" class="nav bs-sidenav">
{% for toc_item in toc %}
{% for toc_item in toc_item.children %}
<li><a href="{{ toc_item.url }}"><span class="active_icon glyphicon glyphicon-eye-open"></span><span class="passive_icon glyphicon glyphicon-unchecked"></span> {{ toc_item.title }}</a></li>
{% endfor %}
{% endfor %}
</ul>
</div>