-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Begin re-working localization instructions * Fix dangling sentence * Re-arrange sections plus new content * Fix TOC issue with misplaced capture directive * Create new shortcodes for versions and language repos * Add more translation instructions * Remove translation docs added as an example * Finish draft of localization doc * Remove extraneous note
- Loading branch information
1 parent
c36098d
commit 1778e77
Showing
6 changed files
with
137 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
en: kubernetes/website | ||
cn: kubernetes/kubernetes-docs-zh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{- $languages := .Site.Home.AllTranslations }} | ||
<table> | ||
<thead> | ||
<tr> | ||
<th> | ||
Language | ||
</th> | ||
<th> | ||
Language code | ||
</th> | ||
<th> | ||
Repository | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{- range $languages.ByWeight }} | ||
{{- $name := .Language.LanguageName }} | ||
{{- $code := string .Language }} | ||
{{- $repo := printf "https://github.com/%s" (index .Site.Data.repos $code) }} | ||
<tr> | ||
<td> | ||
<a href="{{ .Permalink }}"> | ||
{{ $name }} | ||
</a> | ||
</td> | ||
<td> | ||
<code>{{ $code }}</code> | ||
</td> | ||
<td> | ||
<a href="{{ $repo }}"> | ||
{{ $repo }} | ||
</a> | ||
</td> | ||
</tr> | ||
{{- end }} | ||
</tbody> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{ .Site.Params.latest }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{- $latestVersion := .Site.Params.latest }} | ||
{{- $latestReleaseBranch := printf "release-%s" (replace $latestVersion "v" "") }} | ||
{{- $latestReleaseBranch }} |