From d4dfbbd264e2427e6c5f91db41f9fa96196a33f2 Mon Sep 17 00:00:00 2001 From: John Mulhausen Date: Thu, 2 Feb 2017 16:44:23 -0800 Subject: [PATCH] Optimizations, fix Cloud YAML --- _data/toc.yaml | 3 ++- _includes/tree.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/_data/toc.yaml b/_data/toc.yaml index 6ccb2b0486..734d623368 100644 --- a/_data/toc.yaml +++ b/_data/toc.yaml @@ -594,7 +594,6 @@ reference: - path: /engine/reference/commandline/history/ title: docker history - sectiontitle: docker image * - section: section: - path: /engine/reference/commandline/image/ title: docker image @@ -999,6 +998,8 @@ manuals: title: Using Docker Cloud on AWS - title: Cloud API reference path: /apidocs/docker-cloud/ + - title: Cloud stack file YAML reference + path: /docker-cloud/apps/stack-yaml-reference/ - path: /docker-cloud/slack-integration/ title: Docker Cloud notifications in Slack - path: /apidocs/docker-cloud/ diff --git a/_includes/tree.html b/_includes/tree.html index 9f06c6a051..033d4fc021 100644 --- a/_includes/tree.html +++ b/_includes/tree.html @@ -1 +1 @@ -{% for item in tree %}{% if item.sectiontitle %}{% capture treeString %}{{ item.section | downcase }}{% endcapture %}{% capture pageURLString %}"{{ page.url }}"{% endcapture %}
  • {{ item.sectiontitle }}{% else %}
  • {{ item.title }}
  • {% endif %}{% endfor %} +{% assign foundBranch="false" %}{% for item in tree %}{% if item.sectiontitle %}{% if foundBranch=="false" %}{% capture treeString %}{{ item.section | downcase }}{% endcapture %}{% capture pageURLString %}"{{ page.url }}"{% endcapture %}{% else %}{% assign treeString="" %}{% endif %}
  • {{ item.sectiontitle }}{% else %}
  • {{ item.title }}
  • {% endif %}{% endfor %}