I downloaded the example files from the above link, the collapsible
sidebar works well with the python documentation. As the Leo
documentation is just a variant of python's, I downloaded a HTML
chapter and the support files kept in .../static, then I placed the
"sidebar.js" in with those files on my local copy. To make the
sidebar collapsing work, all I had to do was add it to the list of
javascript files in the chapter .html file, i.e., I added the second
line below
<script type="text/javascript" src="IPythonBridge_files/
doctools.js"></script>
<script type="text/javascript" src="IPythonBridge_files/
sidebar.js"></script>
in the 'head' section, (the above takes into account that I was doing
this on my local, differently arranged, copy).
That is all that it takes to give us a collapsible TOC
Tom
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en.