Skip to content

Commit

Permalink
[#676] Support Deeper Nesting in RTD Sidebar
Browse files Browse the repository at this point in the history
This allows setting an arbitrary Sidebar Depth for both locally built
docs & docs on ReadTheDocs.org.

* Move the layout.html template to page.html since ReadTheDocs ignores
  the layout.html template.
* Reduce the Sidebar Depth to a level of 3 in order to reduce
  unnecessary entries in the Stencil Data Types & Behaviors Reference.

See: readthedocs/readthedocs.org#152
  • Loading branch information
prikhi committed Apr 21, 2015
1 parent ab196ec commit 5d2137c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% extends "!layout.html" %}
{% extends "!page.html" %}

{% block menu %}
{% set toctree = toctree(maxdepth=-1, collapse=True, includehidden=True) %}
{% set toctree = toctree(maxdepth=3, collapse=True, includehidden=True) %}
{% if toctree %}
{{ toctree }}
{% else %}
Expand Down

0 comments on commit 5d2137c

Please sign in to comment.