mirror of https://github.com/docker/docs.git
cli: add links for cli flags
... and remove the column for shorthands. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
0b722c9aee
commit
75dc05388d
|
@ -96,7 +96,6 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th>Option</th>
|
||||
<th>Short</th>
|
||||
<th>Default</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
|
@ -104,8 +103,17 @@
|
|||
<tbody>
|
||||
{{ range where . "hidden" false }}
|
||||
<tr>
|
||||
<td>{{ with .option }}<code>--{{ . }}</code>{{ end }}</td>
|
||||
<td>{{ with .shorthand }}<code>-{{ . }}</code>{{ end }}</td>
|
||||
{{ $short := .shorthand }}
|
||||
{{ $long := .option }}
|
||||
<td>
|
||||
{{ with .details_url }}
|
||||
<a class="link" href="{{ . }}">
|
||||
<code>{{ with $short }}-{{ . }}, {{end}}--{{ $long }}</code>
|
||||
</a>
|
||||
{{ else }}
|
||||
<code>{{ with $short }}-{{ . }}, {{end}}--{{ $long }}</code>
|
||||
{{ end }}
|
||||
</td>
|
||||
{{ $skipDefault := `[],map[],false,0,0s,default,'',""` }}
|
||||
<td>
|
||||
{{ with .default_value }}
|
||||
|
|
Loading…
Reference in New Issue