diff --git a/_includes/tree.html b/_includes/tree.html index 94727832d7..6adacc83f8 100644 --- a/_includes/tree.html +++ b/_includes/tree.html @@ -1,4 +1,4 @@ -{% for item in tree %}{% if item.heading %}{% else %}{% if item.sectiontitle %}
  • ' + tree[i].title + '
  • '); - } - } - } -} function hookupTOCEvents() { // do after tree render @@ -41,12 +19,7 @@ function hookupTOCEvents() }); } jQuery(document).ready(function(){ - $.getJSON( "/toc.txt", function( data ) { - tocData = data; - renderTree(data.toc); - $(".nav-sub").html(treeOutput.join('')); - hookupTOCEvents(); - }); + hookupTOCEvents(); $("#TableOfContents ul").empty(); var prevH2Item = null; diff --git a/toc.txt b/toc.txt deleted file mode 100644 index 8d338bf0d7..0000000000 --- a/toc.txt +++ /dev/null @@ -1,4 +0,0 @@ ---- -layout: null ---- -{{ site.data.toc | jsonify }}