Sha256: f82b03a73576e33079f80cbc75eb80a6f10f2dd49bfb89b3994558babb23a660

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

<!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
<script>
$( document ).ready(function() {
  // Handler for .ready() called.

$('#toc').toc({ minimumHeaders: 0, listType: 'ul', headers: 'h2,h3,h4,h5,h6'});
$('#toc_ul').navgoco({
    caretHtml: '',
    accordion: true,
    openClass: 'active', // open
    save: false, // leave false or nav highlighting doesn't work right
    caretHtml: '...', // Make it easier to expand the drawers by increasing click-capture area.
    cookie: {
        name: 'navgoco',
        expires: false,
        path: '/'
    },
    slide: {
        duration: 400,
        easing: 'swing'
    }
});


// /* this offset helps account for the space taken up by the floating toolbar. */
// $('#toc').on('click', 'a', function() {
//   var target = $(this.getAttribute('href'))
//     , scroll_target = target.offset().top
//
//   $(window).scrollTop(scroll_target - 10);
//   return false
// })
});
</script>


<div id="toc"></div>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sanskrit-documentation-theme-0.1.6 _includes/toc.html
sanskrit-documentation-theme-0.1.5 _includes/toc.html
sanskrit-documentation-theme-0.1.4 _includes/toc.html
sanskrit-documentation-theme-0.1.3 _includes/toc.html
sanskrit-documentation-theme-0.1.2 _includes/toc.html
sanskrit-documentation-theme-0.1.1 _includes/toc.html