diff --git a/_includes/cli.md b/_includes/cli.md
index ce36909971..47add07054 100644
--- a/_includes/cli.md
+++ b/_includes/cli.md
@@ -81,8 +81,8 @@ your client and daemon API versions.
## Usage
-```none
-{{ controller_data.usage | replace: tabChar,"" | strip }}{% if controller_data.cname %} COMMAND{% endif %}
+```console
+{{ controller_data.usage | replace: tabChar, "" | strip }}{% if controller_data.cname %} COMMAND{% endif %}
```
{% endif %}
@@ -116,15 +116,12 @@ For example uses of this command, refer to the [examples section](#examples) bel
{% for option in alloptions %}
-
{% capture deprecated-badge %}{% if option.deprecated %}deprecated{% endif %}{% endcapture %}
{% capture experimental-daemon-badge %}{% if option.experimental %}experimental (daemon){% endif %}{% endcapture %}
{% capture experimental-cli-badge %}{% if option.experimentalcli %}experimental (CLI){% endif %}{% endcapture %}
{% capture min-api %}{% if option.min_api_version %}API {{ option.min_api_version }}+{% endif %}{%endcapture%}
{% capture flag-orchestrator %}{% if option.swarm %}Swarm{% endif %}{% if option.kubernetes %}Kubernetes{% endif %}{% endcapture %}
-
{% capture all-badges %}{{ deprecated-badge }}{{ experimental-daemon-badge }}{{ experimental-cli-badge }}{{ min-api }}{{ flag-orchestrator }}{% endcapture %}
-
{% assign defaults-to-skip = "[],map[],false,0,0s,default,'',\"\"" | split: ',' %}
{% capture option-default %}{% if option.default_value %}{% unless defaults-to-skip contains option.default_value or defaults-to-skip == blank %}`{{ option.default_value }}`{% endunless %}{% endif %}{% endcapture %}
@@ -132,11 +129,9 @@ For example uses of this command, refer to the [examples section](#examples) bel
{{ option-default }} |
{% if all-badges != '' %}{{ all-badges | strip }} {% endif %}{{ option.description | strip }} |
-
{% endfor %}
-
{% endif %}
{% if controller_data.examples %}
@@ -157,8 +152,8 @@ The include.datafolder or include.datafile was not set.
## Parent command
-{% capture parentfile %}{{ controller_data.plink | replace: ".yaml", "" | replace: "docker_","" }}{% endcapture %}
-{% capture parentdatafile %}{{ controller_data.plink | replace: ".yaml", "" }}{% endcapture %}
+{% capture parentfile %}{{ controller_data.plink | remove_first: ".yaml" | remove_first: "docker_" }}{% endcapture %}
+{% capture parentdatafile %}{{ controller_data.plink | remove_first: ".yaml" }}{% endcapture %}
{% capture parentDesc %}{{ site.data[include.datafolder][parentdatafile].short }}{% endcapture %}
| Command | Description |
@@ -181,9 +176,9 @@ The include.datafolder or include.datafile was not set.
{% for command in controller_data.cname %}
- {% capture dataFileName %}{{ command | strip | replace: " ","_" }}{% endcapture %}
+ {% capture dataFileName %}{{ command | strip | replace: " ", "_" }}{% endcapture %}
- [{{ command }}]({{ dataFileName | replace: "docker_","" }}/) |
+ [{{ command }}]({{ dataFileName | remove_first: "docker_" }}/) |
{{ site.data[include.datafolder][dataFileName].short }} |
{% endfor %}
@@ -204,9 +199,9 @@ The include.datafolder or include.datafile was not set.
{% for command in site.data[include.datafolder][parentdatafile].cname %}
- {% capture dataFileName %}{{ command | strip | replace: " ","_" }}{% endcapture %}
+ {% capture dataFileName %}{{ command | strip | replace: " ", "_" }}{% endcapture %}
- [{{ command }}]({{ dataFileName | replace: "docker_","" }}/) |
+ [{{ command }}]({{ dataFileName | remove_first: "docker_" }}/) |
{{ site.data[include.datafolder][dataFileName].short }} |
{% endfor %}