From 4b05d07fb7fdfef1a787d8716044afb20bc655d5 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Tue, 15 Nov 2016 11:49:18 -0800 Subject: [PATCH 1/2] Pre-render nav --- _includes/tree.html | 2 +- _layouts/docs.html | 3 ++- js/menu.js | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) 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,14 +19,6 @@ 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(); 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 }}