Skip to content

Commit

Permalink
Show global toc in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 3, 2016
1 parent 8473082 commit 2376fe2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions _templates/globaltoc.html
@@ -0,0 +1,4 @@
<ul class="globaltoc"
role="menu"
aria-labelledby="dLabelGlobalToc">{{ toctree(maxdepth=theme_globaltoc_depth|toint, collapse=False, includehidden=theme_globaltoc_includehidden|tobool) }}
</ul>
1 change: 0 additions & 1 deletion _templates/navbar.html
Expand Up @@ -24,7 +24,6 @@
{%- endfor %}
{% endif %}
{% block navbartoc %}
{% include "globaltoc.html" %}
{% if theme_navbar_pagenav %}
{% include "navbartoc.html" %}
{% endif %}
Expand Down
4 changes: 3 additions & 1 deletion conf.py
Expand Up @@ -160,7 +160,9 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {
'**': ['globaltoc.html']
}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down

0 comments on commit 2376fe2

Please sign in to comment.