mirror of https://github.com/docker/docs.git
Optimizations and nosync-ing the Reference section
This commit is contained in:
parent
c24fec68b6
commit
e333250c19
1594
_data/toc.yaml
1594
_data/toc.yaml
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1 @@
|
|||
{% for item in tree %}{% if item.sectiontitle %}{% capture treeString %}{{ item.section | downcase }}{% endcapture %}{% capture pageURLString %}"{{ page.url }}"{% endcapture %}
|
||||
<li class="leaf {% if treeString contains pageURLString %}menu-open{% else %}menu-closed{% endif %}"><a href="javascript:void(0)" class="expand-menu "><span class="menu-icon" aria-hidden="true"></span>{{ item.sectiontitle }}</a>
|
||||
<ul class="nav-sub">
|
||||
{% assign tree = item.section %}{% include tree.html %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<li class="leaf"><a href="{{ item.path }}" class="{% if item.path == page.url and item.nosync != true %}active currentPage{% endif %}">{{ item.title }}</a></li>{% endif %}{% endfor %}
|
||||
{% for item in tree %}{% if item.sectiontitle %}{% capture treeString %}{{ item.section | downcase }}{% endcapture %}{% capture pageURLString %}"{{ page.url }}"{% endcapture %}<li class="leaf {% if treeString contains pageURLString %}menu-open{% else %}menu-closed{% endif %}"><a href="javascript:void(0)" class="expand-menu "><span class="menu-icon" aria-hidden="true"></span>{{ item.sectiontitle }}</a><ul class="nav-sub">{% assign tree = item.section %}{% include tree.html %}</ul>{% else %}<li class="leaf"><a href="{{ item.path }}" class="{% if item.path == page.url and item.nosync != true %}active currentPage{% endif %}">{{ item.title }}</a></li>{% endif %}{% endfor %}
|
||||
|
|
|
@ -1,12 +1,14 @@
|
|||
{% assign topicFound="false" %}
|
||||
{% for section in site.data.toc.horizontalnav %}
|
||||
{% assign topicFound="false" %}
|
||||
{% assign activeCSS = "" %}
|
||||
{% assign tree = site.data.toc[section.node] %}
|
||||
<!-- path comparison: item.path: {{ item.path }} == page.path: {{ page.url }} -->
|
||||
{% capture thisSection %}{% include tree.html %}{% endcapture %}
|
||||
{% if section.path == page.url or thisSection contains "active currentPage" %}
|
||||
{% capture leftnav %}{{ thisSection }}{% endcapture %}
|
||||
{% capture activeCSS %} class="active"{% endcapture %}
|
||||
{% if topicFound=="false" %}
|
||||
{% assign tree = site.data.toc[section.node] %}
|
||||
{% capture thisSection %}{% include tree.html %}{% endcapture %}
|
||||
{% if section.path == page.url or thisSection contains "active currentPage" %}
|
||||
{% capture leftnav %}{{ thisSection }}{% endcapture %}
|
||||
{% capture activeCSS %} class="active"{% endcapture %}
|
||||
{% assign topicFound="true" %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<li id="{{ section.node }}"{{ activeCSS }}><a href="{{ section.path }}">{{ section.title }}</a></li>
|
||||
{% endfor %}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: All Page Links
|
||||
layout: null
|
||||
hide_from_sitemap: true
|
||||
layout: null
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue