Skip to content

Commit

Permalink
Show Infinite Depth in Sidebar of Docs
Browse files Browse the repository at this point in the history
Create a Sphinx template fragment to remove the maximum depth of
sections shown & to collapse children of sibling sections.

Refs #676
  • Loading branch information
prikhi committed Apr 7, 2015
1 parent 337bbdd commit 2caec3f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/source/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{% extends "!layout.html" %}

{% block menu %}
{% set toctree = toctree(maxdepth=-1, collapse=True, includehidden=True) %}
{% if toctree %}
{{ toctree }}
{% else %}
<!-- Local TOC -->
<div class="local-toc">{{ toc }}</div>
{% endif %}
{% endblock %}

0 comments on commit 2caec3f

Please sign in to comment.