From a06ed8bc8e47cdca09962d31c9dcf221483011b2 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 11 Sep 2022 12:52:02 +0200 Subject: [PATCH 1/3] compose(uninstall): fix liquid syntax error Signed-off-by: CrazyMax --- compose/install/uninstall.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compose/install/uninstall.md b/compose/install/uninstall.md index 0af773391db9..21e6904d89d8 100644 --- a/compose/install/uninstall.md +++ b/compose/install/uninstall.md @@ -57,6 +57,8 @@ $ rm /usr/local/lib/docker/cli-plugins/docker-compose To check where Compose is installed, use: +{% raw %} ```console $ docker info --format '{{range .ClientInfo.Plugins}}{{if eq .Name "compose"}}{{.Path}}{{end}}{{end}}' -``` \ No newline at end of file +``` +{% endraw %} From 7f7c26e33242306fe6d9ec454ab275ba127e0789 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 11 Sep 2022 12:53:51 +0200 Subject: [PATCH 2/3] jekyll: set liquid error mode to strict Signed-off-by: CrazyMax --- _config.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_config.yml b/_config.yml index 9e976ef85640..23df4df26564 100644 --- a/_config.yml +++ b/_config.yml @@ -24,6 +24,10 @@ kramdown: syntax_highlighter: rouge toc_levels: 2..3 +# https://jekyllrb.com/docs/configuration/liquid/ +liquid: + error_mode: strict + exclude: - _releaser - _samples From a9981de12fb328895abd2e8087b736db987ec00e Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 11 Sep 2022 13:05:36 +0200 Subject: [PATCH 3/3] include(cli): fix liquid syntax error Signed-off-by: CrazyMax --- _includes/cli.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_includes/cli.md b/_includes/cli.md index 42d0efbd24b2..c2830f46b873 100644 --- a/_includes/cli.md +++ b/_includes/cli.md @@ -133,7 +133,8 @@ For example uses of this command, refer to the [examples section](#examples) bel {%- endif -%} {% 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 defaults-to-skip-str %}[],map[],false,0,0s,default,'',""{% endcapture %} + {% capture defaults-to-skip %}{{ defaults-to-skip-str | split: ',' }}{% endcapture %} {% 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 %} {% if option.details_url and option.details_url != '' -%}