diff --git a/styles/readtheorg/js/readtheorg.js b/styles/readtheorg/js/readtheorg.js index 5597814..41b9a5d 100644 --- a/styles/readtheorg/js/readtheorg.js +++ b/styles/readtheorg/js/readtheorg.js @@ -39,11 +39,16 @@ $( document ).ready(function() { // add sticky table headers $('table').stickyTableHeaders(); + + // set the height of tableOfContents var $postamble = $('#postamble'); var $tableOfContents = $('#table-of-contents'); - // set the height of tableOfContents $tableOfContents.height($tableOfContents.height() - $postamble.outerHeight()); + // add TOC button + var toggleSidebar = $('

Table of Contents

'); + $('#content').prepend(toggleSidebar); + }); window.SphinxRtdTheme = (function (jquery) {