From 3530e6d6d0513d6de06341d4d1827c2dfa0b8408 Mon Sep 17 00:00:00 2001 From: Irvi Firqotul Aini Date: Wed, 13 May 2020 21:50:31 +0700 Subject: [PATCH 1/2] Using regex to allow rendering notes with an indent, for example: {{< note >}} If the last element of the path is a substring of the last element in request path, it is not a match (for example: `/foo/bar` matches`/foo/bar/baz`, but does not match `/foo/barbaz`). {{< /note >}} After changin to hugo 0.70 trim seems to be not working. --- layouts/shortcodes/note.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index 1161c2366c..1da48797c5 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,3 +1,3 @@
-
{{ T "note" }} {{ trim .Inner " \n" | markdownify }}
+
{{ T "note" }} {{ replaceRE "\\s+|\n" " " .Inner | markdownify }}
\ No newline at end of file From e852b9bb810fe0254423bf03462072df62e54487 Mon Sep 17 00:00:00 2001 From: Irvi Firqotul Aini Date: Thu, 14 May 2020 00:18:40 +0700 Subject: [PATCH 2/2] Make small changes to trigger tide. --- .../workloads/controllers/deployment.md | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/content/en/docs/concepts/workloads/controllers/deployment.md b/content/en/docs/concepts/workloads/controllers/deployment.md index aeb9542126..a8ccfaa32c 100644 --- a/content/en/docs/concepts/workloads/controllers/deployment.md +++ b/content/en/docs/concepts/workloads/controllers/deployment.md @@ -55,7 +55,10 @@ In this example: as long as the Pod template itself satisfies the rule. {{< note >}} - The `.spec.selector.matchLabels` field is a map of {key,value} pairs. A single {key,value} in the `matchLabels` map is equivalent to an element of `matchExpressions`, whose key field is "key" the operator is "In", and the values array contains only "value". All of the requirements, from both `matchLabels` and `matchExpressions`, must be satisfied in order to match. + The `.spec.selector.matchLabels` field is a map of {key,value} pairs. + A single {key,value} in the `matchLabels` map is equivalent to an element of `matchExpressions`, + whose key field is "key" the operator is "In", and the values array contains only "value". + All of the requirements, from both `matchLabels` and `matchExpressions`, must be satisfied in order to match. {{< /note >}} * The `template` field contains the following sub-fields: @@ -75,9 +78,10 @@ Follow the steps given below to create the above Deployment: kubectl apply -f https://k8s.io/examples/controllers/nginx-deployment.yaml ``` - {{< note >}} - You can specify the `--record` flag to write the command executed in the resource annotation `kubernetes.io/change-cause`. The recorded change is useful for future introspection. For example, to see the commands executed in each Deployment revision. - {{< /note >}} + {{< note >}} + You can specify the `--record` flag to write the command executed in the resource annotation `kubernetes.io/change-cause`. + The recorded change is useful for future introspection. For example, to see the commands executed in each Deployment revision. + {{< /note >}} 2. Run `kubectl get deployments` to check if the Deployment was created. @@ -904,9 +908,9 @@ example, rollback the Deployment to its previous version. {{< /note >}} {{< note >}} -If you pause a Deployment, Kubernetes does not check progress against your specified deadline. You can -safely pause a Deployment in the middle of a rollout and resume without triggering the condition for exceeding the -deadline. +If you pause a Deployment, Kubernetes does not check progress against your specified deadline. +You can safely pause a Deployment in the middle of a rollout and resume without triggering +the condition for exceeding the deadline. {{< /note >}} You may experience transient errors with your Deployments, either due to a low timeout that you have set or