mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Merge pull request #216 from agjohnson/fix-toctree
Fix issue with toctree :titlesonly: and nav menu
This commit is contained in:
commit
27c0270ebe
|
@ -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
12
demo_docs/source/toc.rst
Normal file
|
@ -0,0 +1,12 @@
|
|||
=========
|
||||
TOC Tests
|
||||
=========
|
||||
|
||||
One
|
||||
===
|
||||
|
||||
Two
|
||||
---
|
||||
|
||||
Three
|
||||
`````
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user