[zh] Fix table format for kubeadm commands

This commit is contained in:
Qiming Teng
2020-05-27 17:37:34 +08:00
parent 1a87ff928e
commit b719fccc1d
108 changed files with 10196 additions and 10188 deletions
@@ -2,6 +2,7 @@
<!--
### Synopsis
-->
### 概要
<!--
@@ -10,12 +11,14 @@ The shell code must be evaluated to provide interactive
completion of kubeadm commands. This can be done by sourcing it from
the .bash_profile.
-->
为指定的 shellbash 或 zsh)输出 shell 自动补全代码。
必须激活 shell 代码以提供交互式 kubeadm 命令补全。这可以通过加载 .bash_profile 文件完成。
<!--
Note: this requires the bash-completion framework.
-->
注意: 此功能依赖于 `bash-completion` 框架。
<!--
@@ -25,23 +28,30 @@ Once installed, bash_completion must be evaluated. This can be done by adding th
following line to the .bash_profile
$ source $(brew --prefix)/etc/bash_completion
-->
在 Mac 上使用 homebrew 安装:
brew install bash-completion
```
brew install bash-completion
```
安装后,必须激活 bash_completion。这可以通过在 .bash_profile 文件中添加下面的命令行来完成
source $(brew --prefix)/etc/bash_completion
```
source $(brew --prefix)/etc/bash_completion
```
<!--
If bash-completion is not installed on Linux, please install the 'bash-completion' package
via your distribution's package manager.
-->
如果在 Linux 上没有安装 bash-completion,请通过您的发行版的包管理器安装 'bash-completion' 软件包。
如果在 Linux 上没有安装 bash-completion,请通过您的发行版的包管理器安装 `bash-completion` 软件包。
<!--
Note for zsh users: [1] zsh completions are only supported in versions of zsh &gt;= 5.2
-->
zsh 用户注意事项:[1] zsh 自动补全仅在 &gt;=v5.2 及以上版本中支持。
```
@@ -51,11 +61,10 @@ kubeadm completion SHELL [flags]
<!--
### Examples
-->
### 示例
<!--
```
# Install bash completion on a Mac using homebrew
brew install bash-completion
printf "\n# Bash completion support\nsource $(brew --prefix)/etc/bash_completion\n" >> $HOME/.bash_profile
@@ -71,7 +80,6 @@ source $HOME/.bash_profile
# Load the kubeadm completion code for zsh[1] into the current shell
source <(kubeadm completion zsh)
```
-->
```
@@ -94,55 +102,54 @@ source <(kubeadm completion zsh)
<!--
### Options
-->
### 选项
<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>
<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>
<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
help for completion
-->
completion 操作的帮助命令
</td>
</tr>
<tr>
<td colspan="2">-h, --help</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!-- help for completion -->
completion 操作的帮助命令
</td>
</tr>
</tbody>
</tbody>
</table>
<!--
### Options inherited from parent commands
-->
### 从父命令继承的选项
<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>
<table style="width: 100%; table-layout: fixed;">
<colgroup>
<col span="1" style="width: 10px;" />
<col span="1" />
</colgroup>
<tbody>
<tr>
<td colspan="2">--rootfs string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
[EXPERIMENTAL] The path to the 'real' host root filesystem.
-->
[实验] 到 '真实' 主机根文件系统的路径。
</td>
</tr>
<tr>
<td colspan="2">--rootfs string</td>
</tr>
<tr>
<td></td><td style="line-height: 130%; word-wrap: break-word;">
<!--
[EXPERIMENTAL] The path to the 'real' host root filesystem.
-->
[实验] 到 '真实' 主机根文件系统的路径。
</td>
</tr>
</tbody>
</tbody>
</table>