mirror of https://github.com/docker/docs.git
Reference: move "parent", "child", and "related" commands to bottom
For some commands, the list of "related" commands is lenghty, therefore hiding the extended description and examples below the fold, which is not ideal. This patch moves the "parent command", "child commands", and "related commands" sections to the bottom of the page. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
60cf5650bf
commit
a76cbe68a7
|
@ -130,27 +130,25 @@ your client and daemon API versions.
|
|||
|
||||
{% endif %} <!-- end if options -->
|
||||
|
||||
{% if site.data[include.datafolder][include.datafile].cname %}
|
||||
{% unless site.data[include.datafolder][include.datafile].long == site.data[include.datafolder][include.datafile].short %}
|
||||
|
||||
## Child commands
|
||||
## Extended description
|
||||
|
||||
{{ site.data[include.datafolder][include.datafile].long }}
|
||||
|
||||
{% endunless %}
|
||||
|
||||
{% if site.data[include.datafolder][include.datafile].examples %}
|
||||
|
||||
## Examples
|
||||
|
||||
{{ site.data[include.datafolder][include.datafile].examples }}
|
||||
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
||||
The include.datafolder or include.datafile was not set.
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Command</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for command in site.data[include.datafolder][include.datafile].cname %}
|
||||
{% capture dataFileName %}{{ command | strip | replace: " ","_" }}{% endcapture %}
|
||||
<tr>
|
||||
<td markdown="span">[{{ command }}]({{ dataFileName | replace: "docker_","" }}/)</td>
|
||||
<td markdown="span">{{ site.data[include.datafolder][dataFileName].short }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% if site.data[include.datafolder][include.datafile].pname %}
|
||||
|
@ -174,6 +172,29 @@ your client and daemon API versions.
|
|||
{% endunless %}
|
||||
{% endif %}
|
||||
|
||||
{% if site.data[include.datafolder][include.datafile].cname %}
|
||||
|
||||
## Child commands
|
||||
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<td>Command</td>
|
||||
<td>Description</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for command in site.data[include.datafolder][include.datafile].cname %}
|
||||
{% capture dataFileName %}{{ command | strip | replace: " ","_" }}{% endcapture %}
|
||||
<tr>
|
||||
<td markdown="span">[{{ command }}]({{ dataFileName | replace: "docker_","" }}/)</td>
|
||||
<td markdown="span">{{ site.data[include.datafolder][dataFileName].short }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endif %}
|
||||
|
||||
{% unless site.data[include.datafolder][include.datafile].pname == "docker" or site.data[include.datafolder][include.datafile].pname == "dockerd" or include.datafile=="docker" %}
|
||||
|
||||
## Related commands
|
||||
|
@ -197,24 +218,3 @@ your client and daemon API versions.
|
|||
</table>
|
||||
|
||||
{% endunless %}
|
||||
|
||||
{% unless site.data[include.datafolder][include.datafile].long == site.data[include.datafolder][include.datafile].short %}
|
||||
|
||||
## Extended description
|
||||
|
||||
{{ site.data[include.datafolder][include.datafile].long }}
|
||||
|
||||
{% endunless %}
|
||||
|
||||
{% if site.data[include.datafolder][include.datafile].examples %}
|
||||
|
||||
## Examples
|
||||
|
||||
{{ site.data[include.datafolder][include.datafile].examples }}
|
||||
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
||||
The include.datafolder or include.datafile was not set.
|
||||
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue