Merge pull request #216 from agjohnson/fix-toctree

Fix issue with toctree :titlesonly: and nav menu
This commit is contained in:
Eric Holscher 2015-07-20 11:13:19 -07:00
commit 27c0270ebe
3 changed files with 18 additions and 1 deletions

View File

@ -19,6 +19,11 @@ Contents:
demo
list
.. toctree::
:titlesonly:
toc
.. toctree::
:maxdepth: 2
:caption: This is an incredibly long caption for a long menu

12
demo_docs/source/toc.rst Normal file
View File

@ -0,0 +1,12 @@
=========
TOC Tests
=========
One
===
Two
---
Three
`````

View File

@ -31,7 +31,7 @@ $(document).ready(function() {
$("table.docutils:not(.field-list)").wrap("<div class='wy-table-responsive'></div>");
// Add expand links to all parents of nested ul
$('.wy-menu-vertical ul').siblings('a').each(function () {
$('.wy-menu-vertical ul').not('.simple').siblings('a').each(function () {
var link = $(this);
expand = $('<span class="toctree-expand"></span>');
expand.on('click', function (ev) {