mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix github link in docs
This commit is contained in:
parent
9bceae2440
commit
f903feee03
1 changed files with 7 additions and 1 deletions
8
docs/theme/docker/layout.html
vendored
8
docs/theme/docker/layout.html
vendored
|
@ -13,6 +13,12 @@
|
||||||
{%- set url_root = pathto('', 1) %}
|
{%- set url_root = pathto('', 1) %}
|
||||||
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
|
{%- if url_root == '#' %}{% set url_root = '' %}{% endif %}
|
||||||
|
|
||||||
|
{%- if current_version == 'latest' %}
|
||||||
|
{% set github_tag = 'master' %}
|
||||||
|
{% else %}
|
||||||
|
{% set github_tag = current_version %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// This is included here for Javascript that doesn't have access to the templates.
|
// This is included here for Javascript that doesn't have access to the templates.
|
||||||
var doc_version = "{{ current_version }}";
|
var doc_version = "{{ current_version }}";
|
||||||
|
@ -107,7 +113,7 @@
|
||||||
{% block body %}{% endblock %}
|
{% block body %}{% endblock %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<div class="pull-right"><a href="https://github.com/dotcloud/docker/blob/{{ current_version }}/docs/sources/{{ pagename }}.rst" title="edit this article">Edit this article on GitHub</a></div>
|
<div class="pull-right"><a href="https://github.com/dotcloud/docker/blob/{{ github_tag }}/docs/sources/{{ pagename }}.rst" title="edit this article">Edit this article on GitHub</a></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue