From 28341b5ec46957e42c8c4ae48ee211d34756b875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 18 May 2018 19:33:50 +0200 Subject: [PATCH] Fix sections in install-kubectl (#8588) This commit adds a missing closing capture and puts "## Install kubectl" inside the relevant capture. Note that the missing close was also missing before Hugo-migration, so the section ordering is still not the same as the Jekyll version of the site. But I think it is more corret. Note that content outside the capture template blocks, is included as defined is this template: https://github.com/kubernetes/website/blob/master/layouts/partials/templates/task.html#L8 See #8277 --- content/en/docs/tasks/tools/install-kubectl.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/content/en/docs/tasks/tools/install-kubectl.md b/content/en/docs/tasks/tools/install-kubectl.md index 994e052d3b..cb4fe121ef 100644 --- a/content/en/docs/tasks/tools/install-kubectl.md +++ b/content/en/docs/tasks/tools/install-kubectl.md @@ -14,12 +14,13 @@ Use the Kubernetes command-line tool, [kubectl](/docs/user-guide/kubectl/), to d Use a version of kubectl that is the same version as your server or later. Using an older kubectl with a newer server might produce validation errors. {{% /capture %}} + +{{% capture steps %}} + ## Install kubectl Here are a few methods to install kubectl. -{{% capture steps %}} - ## Install kubectl binary via native package management {{< tabs name="kubectl_install" >}} @@ -260,7 +261,7 @@ Or when using [Oh-My-Zsh](http://ohmyz.sh/), edit the ~/.zshrc file and update t ```shell source <(kubectl completion zsh) ``` - +{{% /capture %}} {{% capture whatsnext %}} [Learn how to launch and expose your application.](/docs/tasks/access-application-cluster/service-access-application-cluster/)