KubeSphere website and documentation 3.x https://kubesphere.io/
Go to file
liuboaibc 946b9bf099 change zh content 2020-05-27 10:03:40 +08:00
archetypes first-build 2020-04-29 15:35:58 +08:00
assets/scss change zh content 2020-05-27 10:03:40 +08:00
content change zh content 2020-05-27 10:03:40 +08:00
data change zh content 2020-05-27 10:03:40 +08:00
i18n add blog page 2020-05-26 22:06:59 +08:00
layouts fix url 2020-05-26 22:31:44 +08:00
static add blog page 2020-05-26 22:06:59 +08:00
.gitignore first-build 2020-04-29 15:35:58 +08:00
LICENSE Initial commit 2020-04-27 17:59:12 +08:00
README.md refine readme 2020-05-26 17:10:07 +08:00
config.toml update README 2020-05-26 16:14:18 +08:00
netlify.toml add netlify.toml 2020-05-25 16:51:43 +08:00

website

kubesphere website

Contribute

Fork and clone the repo

First, create your own fork of the repository.

Then, clone your fork and enter into it:

git clone https://github.com/<username>/website
cd website

Running the website locally

hugo version: hugo_extended_0.70.0+, you can install Hugo from hugo releases

When you have installed Hugo, then run:

hugo server -D

Open a pull request

Open a pull request (PR) to add a localization to the repository.

Localizing

Find your two-letter language code

First, find your localizations two-letter country code. For example, the two-letter code for Turkey is tr. then, open config.toml, change the menu which language you want to translate。

[languages.tr]
weight = 3
contentDir = "content/tr" // there should be changed
languageCode = "tr-TR" // there should be changed
languageName = "Türk" // there should be changed

[[languages.tr.menu.main]]
weight = 1
name = "Why KubeSphere" // there should be translated
URL = "reason"

[[languages.tr.menu.main]]
weight = 2
name = "Scenario" // there should be translated
hasChildren = true

  [[languages.tr.menu.main]]
  parent = "Scenario"  // there should be translated
  name = "Multi-cluster" // there should be translated
  URL = "multi-cluster"
  weight = 1

Add a new localization directory

Add a language-specific subdirectory to the content folder in the repository. For example, the two-letter code for German is de. It should be named as what you set in contentDir in the previous step

Translating content

Localizations must be based on the English files in content/en . Some attributes which represent some resource paths do not need to be translatedlike icon,image ,etc.

Site strings in i18n

Localizations must include the contents of i18n/en.yaml in a new language-specific file.

Translating data

Localizations must be based on the English files in data/en .