Move Glossary left-nav to be procedurally generated (#2737)

This commit is contained in:
John Mulhausen 2017-04-11 18:23:22 -07:00 committed by GitHub
parent 8fb42d3c28
commit cc362c50d7
2 changed files with 6 additions and 79 deletions

View File

@ -2183,81 +2183,3 @@ manuals:
title: API response codes
- path: /swarm/swarm-api/
title: Docker Swarm API
glossary:
- path: /glossary/?term=aufs
title: aufs
- path: /glossary/?term=base image
title: base image
- path: /glossary/?term=boot2docker
title: boot2docker
- path: /glossary/?term=btrfs
title: btrfs
- path: /glossary/?term=build
title: build
- path: /glossary/?term=cgroups
title: cgroups
- path: /glossary/?term=Compose
title: Compose
- path: /glossary/?term=copy-on-write
title: copy-on-write
- path: /glossary/?term=container
title: container
- path: /glossary/?term=docker
title: Docker
- path: /glossary/?term=Docker for Mac
title: Docker for Mac
- path: /glossary/?term=Docker for Windows
title: Docker for Windows
- path: /glossary/?term=Docker Hub
title: Docker Hub
- path: /glossary/?term=Dockerfile
title: Dockerfile
- path: /glossary/?term=entrypoint
title: ENTRYPOINT
- path: /glossary/?term=filesystem
title: filesystem
- path: /glossary/?term=image
title: image
- path: /glossary/?term=kitematic
title: Kitematic
- path: /glossary/?term=libcontainer
title: libcontainer
- path: /glossary/?term=libnetwork
title: libnetwork
- path: /glossary/?term=link
title: link
- path: /glossary/?term=Machine
title: Machine
- path: /glossary/?term=node
title: node
- path: /glossary/?term=overlay network driver
title: overlay network driver
- path: /glossary/?term=overlay storage driver
title: overlay storage driver
- path: /glossary/?term=registry
title: registry
- path: /glossary/?term=repository
title: repository
- path: /glossary/?term=service
title: service
- path: /glossary/?term=service discovery
title: service discovery
- path: /glossary/?term=swarm
title: swarm
- path: /glossary/?term=Docker Swarm
title: Docker Swarm
- path: /glossary/?term=swarm mode
title: swarm mode
- path: /glossary/?term=tag
title: tag
- path: /glossary/?term=task
title: task
- path: /glossary/?term=toolbox
title: Toolbox
- path: /glossary/?term=Union file system
title: Union file system
- path: /glossary/?term=virtual machine
title: virtual machine
- path: /glossary/?term=volume
title: volume

View File

@ -1,5 +1,9 @@
{% assign topicFound="false" %}
{% for section in site.data.toc.horizontalnav %}
{% if section.node == "glossary" %}
{% capture leftnav %}{% for entry in site.data.glossary %}
<li><a href="/glossary/?term={{ entry[0] }}">{{ entry[0] }}</a></li>{% endfor %}{% endcapture %}
{% else %}
{% assign activeCSS = "" %}
{% if topicFound=="false" %}
{% assign tree = site.data.toc[section.node] %}
@ -10,7 +14,8 @@
{% assign topicFound="true" %}
{% endif %}
{% endif %}
<li id="{{ section.node }}"{{ activeCSS }}><a href="{{ section.path }}">{{ section.title }}</a></li>
{% endif %}
<li id="{{ section.node }}"{{ activeCSS }}><a href="{{ section.path }}">{{ section.title }}</a></li>
{% endfor %}
{% if site.edge == true %}
<li id="stable-cta"><a href="/">Back to Stable docs</a></li>