Fix for upstream edits (#4949)

This commit is contained in:
John Mulhausen 2017-10-13 15:25:11 -07:00 committed by GitHub
parent 024ae953ba
commit 6d2904e7c2
2 changed files with 34 additions and 5 deletions

View File

@ -14,6 +14,10 @@ overrides:
- path: /apidocs/
description: "Auto-generated API docs for Docker Cloud, DTR, UCP. File an issue."
- path: /engine/api/
description: "ReDoc/Swagger API specs"
source: https://github.com/docker/docker-ce/tree/master/components/engine/api
- path: /engine/deprecated.md
description: Docker Engine deprecation reference
source: https://github.com/docker/cli/tree/master/docs/deprecated.md

View File

@ -1,12 +1,37 @@
<!-- Page generated {{ site.time }} -->
<!-- relative link basehrefs -->
{% if page.path contains "index.md" %} {% capture basehref %}{{ page.url }}{% endcapture %} {% else %} {% assign crumbs = page.url | split: '/' %} {% assign stoppingpoint = crumbs | size | minus: 1 %} {% for crumb in crumbs %} {% if forloop.index == stoppingpoint
%} {% capture basehref %}{{basehref}}{{ crumb }}/{% endcapture %} {% break %} {% else %} {% capture basehref %}{{basehref}}{{ crumb }}/{% endcapture %} {% endif %} {% endfor %} {% endif %}
{% if page.path contains "index.md" %}
{% capture basehref %}{{ page.url }}{% endcapture %}
{% else %}
{% assign crumbs = page.url | split: '/' %}
{% assign stoppingpoint = crumbs | size | minus: 1 %}
{% for crumb in crumbs %}
{% if forloop.index == stoppingpoint %}
{% capture basehref %}{{basehref}}{{ crumb }}/{% endcapture %}
{% break %}
{% else %}
{% capture basehref %}{{basehref}}{{ crumb }}/{% endcapture %}
{% endif %}
{% endfor %}
{% endif %}
<!-- Logic for feedback CC'ing -->
{% if page.assignee %}{% assign assignee=page.assignee%}{% else %}{% assign assignee=page.defaultassignee%}{% endif %}
{% if page.assignee %}
{% assign assignee=page.assignee%}
{% else %}
{% assign assignee=page.defaultassignee%}
{% endif %}
<!-- Logic for 'edit this button' -->
{% assign edit_url = "https://github.com/docker/docker.github.io/edit/master/" | append: page.path %} {% for entry in site.data.not_edited_here.overrides %} {% if page.url contains entry.path %} {% if entry.source %}{% assign edit_url = entry.source %}{%
else %}{% assign edit_url = "" %}{% endif %} {% break %} {% endif %} {% endfor %}
{% assign edit_url = "https://github.com/docker/docker.github.io/edit/master/" | append: page.path %}
{% for entry in site.data.not_edited_here.overrides %}
{% if page.url contains entry.path %}
{% if entry.source %}
{% assign edit_url = entry.source %}
{% else %}
{% assign edit_url = "" %}
{% endif %}
{% break %}
{% endif %}
{% endfor %}
<!-- End of logic for 'edit this button' -->