Skip to content

Commit

Permalink
Add navigation template block (#659)
Browse files Browse the repository at this point in the history
* Add the ``extranav`` block after the ``menu`` block in the template.

* Use one big navigation block

* Update changelog.rst
  • Loading branch information
schettino72 authored and Blendify committed Feb 26, 2019
1 parent 6c87660 commit 8c31a26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/changelog.rst
Expand Up @@ -14,6 +14,8 @@ Fixes
Other Changes
--------------

* Add the ``navigation`` template block around the navigation area.

0.4.3
======

Expand Down
2 changes: 2 additions & 0 deletions sphinx_rtd_theme/layout.html
Expand Up @@ -142,6 +142,7 @@
{% endblock %}
</div>

{% block navigation %}
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
{% block menu %}
{#
Expand All @@ -162,6 +163,7 @@
{% endif %}
{% endblock %}
</div>
{% endblock %}
</div>
</nav>

Expand Down

0 comments on commit 8c31a26

Please sign in to comment.