mirror of https://github.com/docker/docs.git
Remove javascripts related to generating library collection navigation
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
e02481c059
commit
d78dc92278
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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 %}
|
||||
]
|
||||
12
js/docs.js
12
js/docs.js
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue