From cc362c50d7b2bb5735df175448a591a1fed6c792 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Tue, 11 Apr 2017 18:23:22 -0700 Subject: [PATCH] Move Glossary left-nav to be procedurally generated (#2737) --- _data/toc.yaml | 78 -------------------------------------- _includes/treebuilder.html | 7 +++- 2 files changed, 6 insertions(+), 79 deletions(-) diff --git a/_data/toc.yaml b/_data/toc.yaml index 5b593ff123..04565ca7b2 100644 --- a/_data/toc.yaml +++ b/_data/toc.yaml @@ -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 diff --git a/_includes/treebuilder.html b/_includes/treebuilder.html index ba22166f73..84f35cf9b8 100644 --- a/_includes/treebuilder.html +++ b/_includes/treebuilder.html @@ -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 %} +
  • {{ entry[0] }}
  • {% endfor %}{% endcapture %} +{% else %} {% assign activeCSS = "" %} {% if topicFound=="false" %} {% assign tree = site.data.toc[section.node] %} @@ -10,7 +14,8 @@ {% assign topicFound="true" %} {% endif %} {% endif %} -
  • {{ section.title }}
  • +{% endif %} +
  • {{ section.title }}
  • {% endfor %} {% if site.edge == true %}
  • Back to Stable docs