Remove javascripts related to generating library collection navigation

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-09-04 00:12:28 +02:00
parent e02481c059
commit d78dc92278
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
3 changed files with 0 additions and 25 deletions

View File

@ -316,7 +316,6 @@
<script src="/js/stickyfill.min.js"></script>
<script defer src="/js/metadata.js"></script>
<script src="/js/glossary.js"></script>
<script src="/js/collections_tocs.js"></script>
<script defer src="/js/docs.js"></script>
<script defer src="/js/toc.js"></script>
<script language="javascript">

View File

@ -1,12 +0,0 @@
---
layout: null
---
var collectionsTOC = new Array()
collectionsTOC["library"] = [
{% for page in site.samples %}
{
"path":{{ page.url | jsonify }},
"title":{{ page.title | jsonify }}
}{% unless forloop.last%},{% endunless %}
{% endfor %}
]

View File

@ -98,9 +98,6 @@ function walkTree(tree)
var subTree = tree[j].section;
walkTree(subTree);
outputLetNav.push('</ul></li>');
} else if (tree[j].generateTOC) {
// auto-generate a TOC from a collection
walkTree(collectionsTOC[tree[j].generateTOC])
} else {
// just a regular old topic; this is a leaf, not a branch; render a link!
outputLetNav.push('<li><a href="' + tree[j].path + '"')
@ -136,15 +133,6 @@ function renderNav(docstoc) {
}
if (outputLetNav.length==0)
{
// didn't find the current topic in the standard TOC; maybe it's a collection;
for (var key in collectionsTOC)
{
var itsHere = findMyTopic(collectionsTOC[key]);
if (itsHere) {
walkTree(collectionsTOC[key]);
break;
}
}
// either glossary was true or no left nav has been built; default to glossary
// show pages tagged with term and highlight term in left nav if applicable
renderTagsPage()