aboutsummaryrefslogtreecommitdiff
blob: 2957ad63d9af8c52c6d13a026f30fb26cff081bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
{%- if display_toc %}

    <nav class="bs-docs-sidebar" data-spy="affix" data-offset-top="140" data-offset-bottom="400">

        {%- if builder != "singlehtml" %}
            {{ toctree()|replace("caption", "hidden")|replace("<ul>", "<ul class='nav'>")|replace('<ul class="current">', "<ul class='current nav'>")|replace("index.html#", "#")  }}
        {%- else %}
            {{ toc|replace("caption", "hidden")|replace("<ul>", "<ul class='nav'>")|replace("index.html#", "#")  }}
        {%- endif %}

    </nav>
{%- endif %}