forked from chrissimpkins/cinder
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SinisterMinister/toc_updates
Toc updates
- Loading branch information
Showing
12 changed files
with
232 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build | ||
dist | ||
mkdocs_cinder.egg-info/ | ||
*.pyc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,52 @@ | ||
{# Figure out how deep we go down the rabbit hole #} | ||
{% if 'toc_depth' in meta %} | ||
{% set depth = meta.toc_depth|first|int %} | ||
{% elif 'toc_depth' in config.extra %} | ||
{% set depth = config.extra.toc_depth %} | ||
{% else %} | ||
{% set depth = 3 %} | ||
{% endif %} | ||
<div class="bs-sidebar hidden-print affix well" role="complementary"> | ||
<ul class="nav bs-sidenav"> | ||
{% for toc_item in toc %} | ||
<li class="first-level {% if toc_item.active %}active{% endif %}"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> | ||
{% for toc_item in toc_item.children %} | ||
<li class="second-level"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> | ||
{% for toc_item in toc_item.children %} | ||
<li class="third-level"><a href="{{ toc_item.url }}">{{ toc_item.title }}</a></li> | ||
<li class="{% if toc_item.active %}active{% endif %}"> | ||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a> | ||
{% if depth >= 2 and toc_item.children|length > 0 %}<ul class="nav"> | ||
{% for toc_item in toc_item.children %} | ||
<li class="second-level"> | ||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a> | ||
{% if depth >= 3 and toc_item.children|length > 0 %}<ul class="nav"> | ||
{% for toc_item in toc_item.children %} | ||
<li class="third-level"> | ||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a> | ||
{% if depth >= 4 and toc_item.children|length > 0 %}<ul class="nav"> | ||
{% for toc_item in toc_item.children %} | ||
<li class="fourth-level"> | ||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a> | ||
{% if depth >= 5 and toc_item.children|length > 0 %}<ul class="nav"> | ||
{% for toc_item in toc_item.children %} | ||
<li class="fifth-level"> | ||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a> | ||
{% if depth >= 6 and toc_item.children|length > 0 %}<ul class="nav"> | ||
{% for toc_item in toc_item.children %} | ||
<li class="sixth-level"> | ||
<a href="{{ toc_item.url }}">{{ toc_item.title }}</a> | ||
</li> | ||
{% endfor %} | ||
</ul>{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul>{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul>{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul>{% endif %} | ||
</li> | ||
{% endfor %} | ||
{% endfor %} | ||
</ul>{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.